这在PHP $ a = explode('',$ loadFunction)[0]中不起作用;

bor*_*net 1 php

我试图访问一个数组而不使用另一个varibale.

例如

$loadFunction = "a b c d";

$a= explode(' ', $loadFunction)[0];
Run Code Online (Sandbox Code Playgroud)

我在PHP 5.3.3中得到Parser错误

任何方式这样做?

cee*_*yoz 7

这种语法在PHP 5.4中可以接受的,但不低.