<?php
$test = "['n']['l']";
echo "I've got a string with the array index ".$test. "\n";
$person = array("n"=>array('l'=>'SMITH'));
echo 'the array, $person, is this: '."\n";
print_r($person);
echo "What I want is ".$person['n']['l']. "\n";
eval("echo \$person$test;");