You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
Hello,
So I'd like to make a note that although this works:
function foo(){
return array('foo','bar');
}
echo foo()[1]; // output bar
this also works: echo array('foo','bar')[1]; // output bar
This does not work yet:
echo (function foo(){ return array('foo','bar');})()[1];
Which could potentially be useful... or maybe not, in any case it is not yet supported.
Thanks!!! WOO XHP!
The text was updated successfully, but these errors were encountered: