I am a newbie to PHP and trying out some things to see they work .. I have tried lots of different attempts at this .. but no luck .. It is supposed to echo output 2 .. !!! I keep getting errors.
<?php
$a = array('x' => array('y' => 1, 'z' => 2, 'q' => 3,));
echo {$a['z']};//echo the value 2 from $a (tried this and it did not work.
?>