top | item 29891852

(no title)

zzt123 | 4 years ago

PHP supports first class functions though?

discuss

order

captn3m0|4 years ago

While PHP is adding a First class callable syntax in 8.1, first-class-functions have been available in PHP since 5.3.0 (Released Jun 2009) going by the Wikipedia definition:

> This means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures.

Ref: https://stackoverflow.com/a/59293198/368328, https://3v4l.org/rQGk2

deepstack|4 years ago

You right they are supporting it since 8.1.0.

fraktl|4 years ago

[deleted]