<?php
// PHP code goes here
?>
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:
<!DOCTYPE html> <html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html>
PHP statements are terminated by semicolon (;)
Output: My first PHP page in the browser:
Share With Family & Friends