I know PHP has a bad reputation for both the language and the people that use it. But lets not knock it too much. For all it's flaws it remains a very quick way for people to define moderately complex programmatic server side generated web-pages. Coming from a time when the alternative was the basic Perl CGI approach it's a testament to the language that beginners were able to pick it up and get stuff running pretty quickly.
Instead of sneering at the flaws and non-leetness of it's users we should be offering to show people who have cut their teeth on PHP how things can be achieved on modern server side systems.