People have a reason to bash PHP? I've yet to see a serious criticism of the language that couldn't be copy-pasta-ed to fit any other web-generation language.
There are some true nuances (the needle/haystack order changing between functions, for instance), but I work from time to time in PHP projects in which we do full-fledged OOP as we would in any other OO language, with testing, proper design (it looks that way to us :P), etc. and I don't think PHP is fundamentally flawed in any sense.
I know the anti-PHP circlejerk won't stop any time soon, but I love the language anyway.
The needle/haystack order only changes between array and string functions. In each group, they are consistent. That also maps to what the underlying C-libraries use, so there's the reason.
28
u/Ryckes Dec 02 '15
This should be at the top. People enjoy too much bashing PHP (both when they have reasons too and whey they haven't).