You focus on the problem not the language.
Then when you understand the problem, you pick the language you personally will be most effective using to tackle the problem.
There are no silver bullets. There is no magic language. And PHP can be a good choice for some problems, and can be wielded with finesse.
The programmer is far more important than the language.