PHP is fit-for-purpose (probably more so than other "codes")
PHP _is_ a great language to work with. It's easily deployable, easy to understand and to get to grips with, has a lovely learning curve offering a richer development experience as the developer's understanding grows and above all, IT GETS THE JOB DONE.
There are better languages out there (Python, Ruby, C#) but nothing that fits so neatly with the way that web sites and web applications actually work. PHP was designed and developed solely for this purpose and makes no claims to be anything else. That's why it's so damn popular.
Oh yeah and lets not forget, it's open source, free to use, learn and develop in and doesn't require the purchase of proprietary IDE's or the study of a complex and archaic system architecture / methodology before you can get started.