Hello World !!!
The basic difference between PHP and HTML is that PHP is first interpreted by the server and HTML file is created. This HTML file is sent to the browser. So, in order to make server aware of some PHP code, we name our files either as .php , .phtml etc. It alerts the server that there may be some PHP code inside the file. A php code is always contained within these two tags :-
Lets start with a Hello world program
<?php echo 'Hello World'; ?>
This will simply write a Hello World on our document. Isn't it easy friends, so lets proceed :-