Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Literally like a drug.
You start with it thinking „it ain’t so great“, then you get addicted and if you are strong enough to overcome your addictions, you’ll never wanna go back. -
C0D4669024yIt's to make you keep coming back to the docs. How else do they know how many active php devs there are in the world?
-
lun01984yoh cmon, same jokes over decades. go read something why it is that way, and how it was designed
-
I agree, though the solution is quite easy: RTFM.
Though I wish that in PHP9 they would just yolo it and make shit consistent... -
hjk10156964yA lot of the parameter "inconsistencies" have to do with what needs to optional/variable arguments and what need to be mandatory.
Another cause is that it is often consistent with it's C/POSIX counterpart.
Related Rants
I love PHP, but...
the PHP API has been designed by crackpipe smoking cave trolls.
Every other function has its params completely reversed or in random order compared to similar functions.
Examples?
array_map, array_filter, property_exists, array_key_exists
rant
heroin-injected hobos
php