> sage advice on avoiding PHP
That's not sage advice. That's just biased, reactionary rhetoric. PHP is just as good or bad as anything else, and it's often the best tool for the job. As with any other language, it can be implemented correctly or incorrectly.
It doesn't have a great track record. Especially it has a _lot_ of security footguns for a memory safe language and while I understand there has been a lot of effort to clean those up more recently I don't think it's managed to fully escape its legacy there.