A PHP script can be placed anywhere in the document. It always starts with the opening tag <?php and ends with the closing tag ?>.
Anything written inside these tags is treated as PHP code by the server:
Keywords like echo, if, and while are not case-sensitive. However, Variables are strictly case-sensitive.
Every PHP instruction must end with a semicolon. Forgetting this is the most common cause of "Parse Errors".
Comments are used to leave notes for yourself or other developers. They are ignored by the server.