Well I don't know PHP, i am just about conversant in C but yea I can imagine that there is a lot of stuff out there that is not great. Oddly enough that article describes PHP the way I would describe my employer

Think about that, that is actually what I have to work in, literally making it up as we go along. I just had to go and sort out a stock issue because even the MD will just ignore the system when it suits him but someone else will be blamed and no one will be able to remember anything or dis/prove anything. "procedures" are made up on the hop and then disregarded. Needless to say we have a 150 page manual on how the company is supposed to run. It does not say a lot but keeps the ISO9001 auditor happy - does that sound like PHP?