php display hello world to web page code example Example 1: php hello world echo "Hello World"; Example 2: php hello world echo "Hello, World!";