print hello php code example Example 1: php hello world print "Hello World!"; Example 2: php hello world echo "Hello, World!";