Earlier quoted context omitted.
A personal anicdote, but I run a SaaS, and there is an extremely pronounced (negative) difference in the sophistication of technical support queries asked by PHP devs vs those in other languages. This may be because PHP is so ubiquitous and approachable, but these types of silly questions (how do I make a POST call to your API?) are why PHP gets it's reputation.
Yes, the biggest strength of PHP is that anyone can pick it up quickly... which means anyone will. There are "best practices" but they're not necessary to get the job done. I usually recommend that new developers start with Python. It teaches structure and consistency without as much variation or room to screw up.
Advantage: they'll never create a mess that you'll have to maintain.
/s
Yes, I totally agree with you: the advantage of PHP is that anyone can pick ut up, and they have done.
The question was often never if it should be coded in PHP or Java but if it should be coded at all and, if so: if it should be an excel file on a file share or sent in email or a php script.
Disclaimer: PHP and Java coder. I can get stuff done quickly in Java, but it takes some practice.