localhost/helloworld.php code example Example 1: start php file <?php //start ?> //stop Example 2: php hello world echo "Hello, World!";