I thought PHP was disliked because its flexibility can lead to horrible code if it's used without discipline, and for a long time its default settings were completely insecure?
I don't recall hearing any serious criticism claiming that it was hard to get things done with (unless you count security).