Nostalgiaplatz said:
obfuscated code sure exists for its maintanability
There are many features that PHP lacks or "features" it implements that make it easy to write terrible code, even compared to other languages. The presence of things like Register Globals and Magic Quotes, for example, as well as its lack of things like tainting.
PHP is good in the hands of a developer that knows what they're doing, but unfortunately since 90% of PHP "developers" are 15 years old and incompetent, most PHP scripts are leakier than sieves.
What you said here:
If the same person who writes C code goes to write PHP, the approach will be the same, regardless. And that doesn't really mean it's going to be awesome just because he was a C programmer. More than 60% of all programmers, if not more, are careless about their code and how everything works to the lowest degrees. If people were more paranoid and security aware, a half of the mistakes wouldn't happen and code wouldn't be as terrible.
Sure, a language can't magically make your code efficient and well-designed, but it can prevent many security flaws. PHP's loose-typing, lack of tainting, and general sloppy attitude make for a coding process that virtually rewards sloppiness and makes it very easy to create insecure code.
There are many good things about PHP, such as the relative ease of knocking out code, its sheer ubiquity, its relatively easy learning curve etc - but it does have
many downfalls.
PS: Perl is neither an acronym nor a shiny ball found in mollusks, fyi.