The amount of people giving reasons to hate it who haven’t used it since 5.4, if ever.
array_ functions.
Why? I use functions like unique, map, filter and some others a lot.
Lack of enums.

I think now PHP has some type support, enums should be next.
Although that is “really miss” rather than hate perhaps.
I agree, but …. Rudy’s Law of Rutebagas. As soon as they implement the most wished-for feature, there’ll be a new most wished-for feature.
__get() and __set() instead of real accessors like in C Sharp or Ruby. That leads to so much $object->getProperty() when $object->propertywould be more succinct and better isolate implementation.
The fact that its array type conflates lists and dictionaries, which should be two distinct data types. PHP’s implementation is a Frankensteinian abomination.
I thought the same thing when I learned PHP, but I have to admit, it works surprisingly well in practice.
array_sort sorting the keys as well as the values :'(
dollars, prefer to use euro.
More of a pound sign person myself: £foo = 'bar'; https://aloneonahill.com/blog/if-php-were-british/
Nothing to hate, maybe dislike the lack of generics, enums, friend classes… Probably something else but no language is perfect.
Biggest dislike:
lack of scalar objects https://github.com/nikic/scalar_objects
I really love autocomplete 🙂
If I had to actually point things I hate, it would be magic accessors. Not that I use them but there is plenty of crap code using them, putting PHP in bad context instead of programmers.
The amount of people who have no idea on programming but nevertheless think they can teach PHP to everyone. A notable example is some Dani Krossing on youtube, who’s got millions of views for his videos but didn’t make it to even basics of programming, such as debugging, error reporting, user-defined functions, the distinction between a dev and a prod environments and such. Not to mention such “complex” topics as following the HTTP guidelines or the separation of concerns.
Such people who decided to make a penny from teaching unsuspecting folks PHP are doing enormous harm, and – worst of all – create a vicious circle, so new guys thinking they already learned programming start making tutorials of their own. As a result, the common perception of PHP is as of a toy scripting tool for retards.
As a “teacher” I can only agree, when I have students who had someone else before they often lack many important basics you mentioned. And schools / training centers aren’t helping about that.
You can have to teach a framework but nobody knows what’s an HTTP request or response or a class…


On any topic where you have sufficient knowledge, tutorials for those with less knowledge than you will always seem ridiculous. Know anything about electricity? Go and watch what 6 year olds are taught. Listen to someone teaching a foreign language, it’s ridiculous.
It’s the curse of knowledge. There are so many things that for you are basic, foundational knowledge that juniors don’t even have an awareness of – the difference between a GET and POST request, a compiled and interpreted language, a value in a database vs a variable. I struggle to point to any course that teaches that well.
The more complete and accurate a course is, the less comprehensible it will be for a beginner.
I large portion of this is people wanting to take the free route on training, so they head to YouTube.
Most of these people wouldn’t spend $1 to bail their mother out of jail, so they’re not the type of people to financially invest in their education.
Granted, you definitely can learn for free (that’s how I learned), but IMO that’s not a great way to put yourself on a track for learning a language.
Feels like I’m implementing a hack when I want some code to run asynchronously, or if I want some non-blocking subroutines.
I’d rather it be completely caked into its core.
The tendency for PHP salaries and contract rates to be at least 20% lower than average.
How literally every single PHP job application always closes without a single interview request, for 10 full months.
Members
Online

source