Hello World in PHP

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

This is how you would display “Hello World” to the browser in PHP.

<?php

echo "Hello World";

?>