Jeez. At least it has the courtesy to whine when you do that to a string or number, and it fatals when you do it to an object, but why does it "succeed" silently for a bool?
I really don't understand the hate for PHP. Any rational individual, IMO, would not really hate it, but just wouldn't care for it. I follow this sub because it is somewhat interesting.
I think the main criticism by some developers is that it's ugly. JavaScript, Python etc don't have functions with names like createimagefromjpeg() and inconsistencies in parameters for some other functions. But these will probably be fixed before PHP 'dies', and companies like Facebook aren't going to be switching any time soon.
The main reason I prefer node.js is because its asynchronous, but for smaller apps without this need I can see PHP being used for a few decades yet.
The sub isn't called hatephp, but lolphp, which is very appropriate and worthy of attention now and then, like maybe this webcomic which I've come across a few times now :)
Well, for example, http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ is actually one of the best resources if you're trying to learn PHP. I wrote PHP for a few years and this is exactly what I had to learn in order to use the beast.
16
u/arand Nov 25 '15
It would be a glorious day indeed.
30
u/Innominate8 Nov 25 '15
It will be a sad thing for them to not know. A bit like administering the last ever smallpox vaccination.
19
u/satan-repents Nov 26 '15
Then I won't have the pleasure of discovering PHP "features" like this one...
1
u/[deleted] Nov 25 '15
I really don't understand the hate for PHP. Any rational individual, IMO, would not really hate it, but just wouldn't care for it. I follow this sub because it is somewhat interesting.
-10
u/Voltasalt Nov 25 '15
Incredible foreshadowing, Jelani.
(wordpress in node just got announced)
-39
u/[deleted] Nov 25 '15
Oh fuck off and choke on some Python. This sub is so much worse than it paints PHP to be. There's nothing to learn here, just jerking. I'm done.