$lookup_table = array ("a" => "['foo']['bar']", "b" => "['foo']['man'][0]");
$foo = array ("a" => array ("bar" => "my value"));
var_dump ($foo['a']['bar']); //output: my value
What I want to do is put ['a']['bar'] as a string and basically make a little array that holds a key and the value or location in the array where the value would be.
$key = "['a']['bar']";
and then do $x = $foo[$key];
and have $x = "my value".
I realize I already put square brackets in the string and I'm doing it again above but I'm not sure how I would write it in the string.