Which version of php added anonymous functions

前端 未结 3 627
不知归路
不知归路 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
    0 讨论(0)
  • 2020-12-18 23:16

    Closures (anonymous functions) were added in PHP 5.3.0

    0 讨论(0)
  • 2020-12-18 23:19

    PHP >5.3:

    http://php.net/manual/en/functions.anonymous.php

    0 讨论(0)
提交回复
热议问题