Access array element from function call in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1769020/how-to-avoid-temporary-variables-in-php-when-using-an-array-returned-from-a-func">How to avoid temporary variables in PHP when using an array returned from a function</a>  </p>
</blockquote>



<pre><code>function array_test()  
{ 
    return array(0, 1, 2); 
}  

echo array_test()[0];
</code></pre>

<p>Can anyone explain why this code doesn't work?</p>
