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?
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?