Is there a way to describe the feature of a programming language that allows you to do something like the following:
有没有办法描述编程语言的功能,允许您执行以下操作:
$foo = return_an_array()[0];
I love this feature in python, and I hate that it's missing in PHP. Is there a name for this?
我喜欢python中的这个功能,我讨厌它在PHP中缺失。这有名字吗?
1 个解决方案
#1
4
Array indexing on arbitrary expressions
对任意表达式进行数组索引
#1
4
Array indexing on arbitrary expressions
对任意表达式进行数组索引