Well, it's not difficult as such ... The "formatting" is just ... not the best possible ...
Now, PHP has plenty of drawbacks, but to be fair there are some good parts to it. In the end, it's of course the programmer at fault.
In a way, we should all be thankful to PHP. You see, it's a bit like Jupiter.
Those who have some familiarity with astronomy, will known that Jupiter is by far the largest and most massive planet in the solar system. As a result, it has a very strong gravitational pull.
The gravitation pull is so strong, that it pulls in many comets and other objects flying through the solar system, meaning they won't trouble those little carbon-based self-replicating automatons on that pale blue dot.
In a similar fashion, PHP seems to have a large gravitational pull for programmers. Especially those with a low gravitational pull of their own are quickly pulled in.
This of course means they won't trouble all the other programmers so much.
PHP is the sinkhole of programming languages