1) A resource like "PHP - The Good Parts", that guided developers through the dos and don'ts of the language at an early stage.
2) An overlay language (like Coffeescript over Javascript) that effectively hides the bad parts, but that might also be extended to bring some consistency to the library APIs (even a bunch of aliases that used consistent naming rules would help).
I'll admit that I have written anything serious in PHP since the late '90s but those are the issues we had bring new developers up to speed.