Because of several main reason we use PHP. These are:
1.PHP runs on many different platforms like that Unix,Linux and Windows etc.
2.It codes and software are free and easy to download.
3.It is secure because user can only aware about output doesn\'t know how that comes.
4.It is fast,flexible and reliable.
5.It supports many servers like: Apache,IIS etc.