- A PHP file or code is executed on the server, and the HTML result is sent output to any browser.
- PHP code start with <?php and end with ?>
<?php
// php code is here
?>
- PHP statement or code end with a semicolon ;
- The default file extension for PHP files is ".php".
- A PHP code can be placed anywhere in the HTML document.
- A PHP file normally contains HTML tags and some PHP scripting code.