associative arrays as variable variables ($$)



Hi all,

I've stumbled upon a problem with accessing associative arrays as
variable variables. I've spent a few hours trying to find a solution,
and I've searched the web a lot, but to no avail...

The problem is in the code:

$data[ 'Objects' ][ 'Spheres' ] = 'blah';
$dataVar = "\$data[ 'Objects' ][ 'Spheres' ]";
echo 'variable variable: ' . $$dataVar . '<br />';
echo 'variable name: ' . $data[ 'Objects' ][ 'Spheres' ] . '<br />';

I don't know why the 3rd line doesn't output what the 4th (last line)
does...

I've extracted the relevant code but I need to access that array as an
associative array. $data[23][3] would lost the meaning anyway :)

Thank you for your time,
-- Evanescent Lurker --

.