I've been using PHP in web development for 10 years now and I can say it has very good features along with some flaws but, once again, just like any other language.
People read "PHP" and think automatically in(secure) phpBB or Joomla but you can write your own PHP code/framework/project, you know. Just make sure if it fits your needs first before you say it doesn't do the job. Maybe you just chose the wrong set of tools for the job.
Damn, I even write shell scripts with it and been replacing old bash scripts for PHP!