4 ms·
PHP supports first class functions though?
by zzt123 5y ago
PHP supports first class functions though?
- deepstack 5y agoYou right they are supporting it since 8.1.0.
- fraktl 5y ago
- captn3m0 5y agoWhile 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://stackoverflow.com/a/59293198/368328, https://3v4l.org/rQGk2 https://3v4l.org/rQGk2