I\'ve got a multidimensional associative array which includes an elements like
$data[\"status\"] $data[\"response\"][\"url\"] $data[\"entry\"][\"0\"][\"text\
Found this on the Variable variables page:
function VariableArray($data, $string) { preg_match_all('/\[([^\]]*)\]/', $string, $arr_matches, PREG_PATTERN_ORDER); $return = $arr; foreach($arr_matches[1] as $dimension) { $return = $return[$dimension]; } return $return; }