hello in php code example Example 1: php hello world echo "Hello World"; Example 2: hello world in php <?php echo "Hello World"; ?>