PHP Array Syntax Parse Error Left Square Bracket “[” [closed]

You can’t use function array dereferencing

return f1(/*some args*/)[0];

until PHP 5.4.0 and above.

Leave a Comment