2 ms·
Not sure if the standard library has evolved since my PHP days, but this would at least solve the "key / haystack" issue. In which lots of the standard library
by matsemann 6y ago
Not sure if the standard library has evolved since my PHP days, but this would at least solve the "key / haystack" issue. In which lots of the standard library had different orders in which parameters are passed. One can finally pass them named and no longer have to care about the order. This may also have been solved by better tooling since then, though.
- disiplus 6y agoa proper IDE solves that, but i always laugh when getting back to php why they made array_map and array_filter switch parameter order.
- Denvercoder9 6y ago> why they made array_map and array_filter switch parameter order It kind of makes sense if you look at the signatures (array_map takes a callable and a variable number of arrays, while array_filter takes a singe array and an optional calable), but yeah, it's horrible to use.