$options[one][two][three]
$text = '$options[one][two][three]'; preg_match('/\$(\w+)((\[\w+\])+)/', $text, $out); preg_match_all('/\[\K[^\]]+/', $out[2], $out2); $var_name = $out[1]; $arrays = $out2[0];
Jump To Top of Thread