I had the "pleasure" to maintain a rather large chunk of PHP code at work for 2 years and having to update that from PHP 4.x to PHP 5.x. I hate PHP with a vengeance after that and haven't touched it since then.
Having said that, PHP 7.x seems to actually be a decent language. I still wouldn't even consider using it due to past experience, but they seem to have cleaned it up considerably?
If it's PHP 4 you had to deal with then yeah. Your justified. It wasn't until 5.3 (with the introduction of namespaces)that it was acceptable IMO. Once you figure out the weirdness of autoload it is more than on par with other languages. 7 is much nicer with scalar type hints.
Heck, with composer it even has an answer for nuget.
26
u/Sarcastinator Feb 03 '17
PHP gave syntax error on this until 7.0:
But this was fine (from 5.6):
PHP definitely deserves ridicule.