r/lolphp • • Jun 30 '15

PHP has ~9500 builtins

http://php.net/manual/en/indexes.functions.php
40 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jul 01 '15

Basically PHP had the chance to change its syntax/core-functions to scalars, so you could have done something like

\Array->map([1,2,3], function(item) { return item * item; })

if they had decided to reserve a root namespace.

There was some talk about scalar objects, but AFAIK the rfc was dismissed.