The php script executed on the web server such as apache server and return html to the browser
A php script can be write anywere in the file, A php script starts with <?php and end with ?>
example: <?php echo “Hello world”; ?>
This script print “Hello world” in your browser as output. The echo is a function used to print a value in the out put html
Every code line in PHP must end with a semicolon. The semicolon is a separator between the instructions from another.If you forgot to put a semicolon,php compiler will return an error (common mistakes in programming) .In PHP, there are two basic statements to print anything in the web browser: echo and print.