I have an issue in accessing the array in php.
$path = \"[\'a\'][\'b\'][\'c\']\";
$value = $array.$path;
In the above piece of code I hav
You have two options. First (evil) if to use eval() function - i.e. interpret your string as code.
Second is to parse your path. That will be:
//$path = "['a']['b']['c']";
preg_match_all("/\['(.*?)'\]/", $path, $rgMatches);
$rgResult = $array;
foreach($rgMatches[1] as $sPath)
{
$rgResult=$rgResult[$sPath];
}