I agree that PHP has its flaws, but if you work with a framework like Symfony, you get an awesome toolset to quickly develop enterprise grade web apps. What I noticed from my students is that they need to understand the difference between server side and client side code. When they switch languages from PHP for server side to JS for client side, this difference becomes more clear.
In my own case, I also use PHP because it fits in our company environment.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.