title: Using eval to print an array value
body: <pre><code>$cars = array
    (
    array("Volvo",22,18),
    array("BMW",15,13),
    array("Saab",5,2),
    array("Land Rover",17,15)
    );
  
  $key = '[1][0]';
  $str = '$cars'.$key;
  echo $str."\n";
  eval($str);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>$cars[1][0]
  PHP Parse error:  syntax error, unexpected end of file in ... : eval()'d code on line 1
  </code></pre>
  
  <p>I'm expecting it to print the value, i.e <code>BMW</code></p>