title: Can I access an associative array by numerical index?
body: <p>I would like to know if it is possible to get the x-value position (ie 2nd) in  a variable variable array reference.</p>
  
  <p>the code below works for the 1st array but not the 2nd. </p>
  
  <pre><code>// WORKS FINE //
  $my1stArray= array( 'red', 'green', 'blue');
  $var_1st = 'my1stArray';
  
  // for each lopp of var var works fine
  echo " - my1stArray Values - &lt;br&gt;";
  foreach ($$var_1st as $k =&gt; $v){
  echo $k." : ".$v." &lt;br&gt;";
  }
  // direct access also works
  echo "my1stArray 3rd value: ".${$var_1st}[2]."&lt;br&gt;";
  
  // Not so good! //
  $my2ndArray = array(
      'color' =&gt; '#ff0000',
      'face' =&gt; 'helvetica',
      'size' =&gt; '+5',
  );
  $var_2nd = 'my2ndArray';
  
  // for each lopp of var_2nd works fine
  echo "&lt;br&gt; - my2ndArray Values - &lt;br&gt;";
  foreach ($$var_2nd as $k =&gt; $v){
  echo $k." : ".$v." &lt;br&gt;";
  }
  /** try to access 2nd value in array with position **/
  echo "my2ndArray 2rd value: ".${$var_2nd[1]}[0]."&lt;br&gt;";
  echo "my2ndArray 2rd value: ".${$var_2nd}[1][0]."&lt;br&gt;";
  </code></pre>