The spaghetti in PHP is the problem. If you are writing a small script that needs to run on the web, PHP is a good way to do it on some cheap shared host.
The problem people who are PHP devs themselves have mentioned is the sheer difficulty of managing massive amounts of PHP code. It's just hard to read and follow.
Try reading through the code in a Django app, and it will make sense to you.
I came from a PHP background and I can honestly tell you (with no amount of sounding like a fanboi) that I think I finally understand the merits of a well-written language like Python.
Comments
The spaghetti in PHP is the problem. If you are writing a small script that needs to run on the web, PHP is a good way to do it on some cheap shared host.
The problem people who are PHP devs themselves have mentioned is the sheer difficulty of managing massive amounts of PHP code. It's just hard to read and follow.
Try reading through the code in a Django app, and it will make sense to you.
I came from a PHP background and I can honestly tell you (with no amount of sounding like a fanboi) that I think I finally understand the merits of a well-written language like Python.
That makes sense, admittedly I've only had to work with small applications.