Which version of php added anonymous functions

前端 未结 3 631
不知归路
不知归路 2020-12-18 22:15

In manual there is create_function function and you can pass result from that function to array_map, I thought that that is the only way to have so

3条回答
  •  太阳男子
    2020-12-18 23:02

    Anonymous functions are available since PHP 5.3:

    The key features of PHP 5.3.0 include:

    • Lambda Functions and Closures

提交回复
热议问题