Main reasons that made PHP a better choice are:
PHP hosting is easy to find.
You can use PHP and HTML together.
It has proper encapsulation (Private keyword).
PHP contributes to building big brands like Facebook.
PHP has live documents.
PHP has a steep learning curve.