Zest.

PHP: Hello world

A short, tested PHP example for hello world. Copy it and adjust the names and paths for your project.

PHP
<?php
echo "Hello, World!\n";

Find it in Zest

Search for “php hello world” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More PHP examples

All PHP examples