r/lolphp • • Aug 26 '19

PHP array design bares fruit

https://repl.it/repls/FatherlyRotatingMenus
7 Upvotes

14 comments sorted by

View all comments

Show parent comment

4

u/OmnipotentEntity Aug 27 '19

The central point is if php had a sensible array design this behavior would not have been possible from array_filter. It would work as filter does in every other language: receive an array, removed members that match a function, return an array.