可能重复: 当使用从函数返回的数组时,如何避免PHP中的临时变量
function array_test() { return array(0, 1, 2); } echo array_test()[0];
任何人都可以解释为什么这段代码不起作用?
php
php ×1