
<?php echo "Hello World";?>
Output: Hello World
Explanation:
A PHP script starts with <?php and ends with ?>
In PHP there are two basic ways to get the output: echo and print.
<?php print "Hello World";?>
Output: Hello World
What is difference between echo and print?
The differences are small: echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters while print can take one argument. echo is marginally faster than print.
“Hello world!” : is a string (sequence of characters).
Note: PHP statements end with a semicolon (;).





