PHP is a server side language.The processing of the PHP code takes place on the server. By the time the data get’s to the user’s browser, there is no PHP left, only the HTML remains. That’s why if you try to run your PHP documents on your computer, and you don’t have PHP installed, all you see is code. The web hosting server that you usually keep your PHP documents on will have PHP installed, and therefor can process the PHP.
Let us first start with the most basic and traditional of programs. if you want to learn php then write this “hello world “example in your text editor. Read more Click here