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?

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.