Well, I agree that PHP is an awfully awful language. I have (fortunately) only had to write a small project in it, although I have maintained some largish things... The problem is, there are some good apps done in it. Many people, me included, will happily use a good and well-maintained application (say, I am a very happy Drupal user, and its developer community is very security-conscious and active), even though it's programmed in PHP.
But choosing PHP for a new project? No, no, for the love of all that's holy, no!