I agree with Jon’s comment above, about PHP being a “WOP” (Web-Oriented Programming) language. People often ask rhetorically “But why is PHP so popular for Web programming?”. Clearly, it’s not because PHP is elegant from a formal language design point of view.
Just take a look, for example, at O’Reilly’s “Learning” series of books. Compare “Learning Perl” and “Learning Python” with “Learning PHP5” (I’m doing it now using their Safari service). The first two barely address Web programming at all (at least not explicitly on the contents pages) and are clearly general purpose programming/scripting languages spiritually at home on Unix and derivatives. The PHP book, on the other hand, has a few chapters on language basics, and then gets right into processing forms, connecting to databases, managing user session, processing XML and uploaded files, etc. It has appendices that include information about configuring IIS and Apache, and the book doesn’t assume its audience is is using or deploying to Linux or BSD.
This difference of emphasis is played out across the publishing industry and online resources, it’s reflected in the nature of the advocacy for the respective languages, and consequently I don’t find it surprising at all that PHP is used so frequently for web programming.