8

Possible Duplicate:
How to avoid temporary variables in PHP when using an array returned from a function

function array_test()  
{ 
    return array(0, 1, 2); 
}  

echo array_test()[0];

Can anyone explain why this code doesn't work?

Community
  • 1
  • 1
Anant
  • 601
  • 2
  • 6
  • 14

0 Answers0