A PHP script can be placed anywhere in the document.
A PHP script starts with <?php and ends with ?>
<?php // php code here ?>
The default file extension for PHP files is ".php".
A PHP file normally contains HTML tags, and some PHP scripting code.
Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function "echo" to output the text "Hello World!" on a web page:
The basic unit of PHP code is called a statement, which ends with a semicolon(;).
In PHP, all keywords like if, else, while, etc., classes, functions, and user-defined functions are NOT case-sensitive.
Usually one line of code contains just one statement, but we can have as many statements on one line as you want.
<php print "hello studentsempire !"; ?>