What is PHP ?

PHP is one of the most widely used server side scripting language for web development.


1) PHP files can contain text, HTML tags and scripts.
2) PHP files are returned to the browser as plain HTML.
3) PHP files have a file extension of ".php", ".php3", or ".phtml".

How to write PHP code.

A PHP scripting block always starts with "<?php  and ends with  ?>."  A PHP scripting block can be placed anywhere in the document. On servers with shorthand support enabled you can start a scripting block with  <? and ends with ?>.
<?php   PHP CODE   ?>.