testArray
Code: Select all
array(
'variable' => array(
'nested' => array(
'deep' => 'test array variable'
)
)
)Which means $this->vars['testArray']['variable']['nested']['deep'] = 'test array variable';
I have the following eval():
Code: Select all
$varString = "$this->vars['testArray']['variable']['nested']['deep']";
$varValue = eval("return \"$varString\";");
echo $varString . '<br />';
echo $varValue . '<br />';Code: Select all
Array[testArray][variable][nested][deep]Code: Select all
test array variable