I wouldn't say that in PHP it's only "a few functions not consistent". PHP has quite a lot of issues that stem from it not being built for this kind of use case originally but then being evolved on top of a wild wild west of weird standard library.
Like I mentioned in the beginning, it was a valid choice at the time for Rasmus to name the functions as he did.
I personally think that there's a lot of similarities - not necessarily in the languages themselves but how they have evolved - in PHP and Javascript. Sure, 10 years ago Javascript was also a mess. These days, it's a joy to write with all the new stuff.
I've seen some recent JS tutorials where JS programmers make a pages/ directory and put about.js, contact.js in there and then do things like require '../utilities.js' for a dozen helper files - it makes me nostalgic for PHP circa-2005 ;-)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I disagree on both notions:
Like I mentioned in the beginning, it was a valid choice at the time for Rasmus to name the functions as he did.
I've seen some recent JS tutorials where JS programmers make a
pages/
directory and putabout.js
,contact.js
in there and then do things likerequire '../utilities.js'
for a dozen helper files - it makes me nostalgic for PHP circa-2005 ;-)