<?php
/*
* Define a namespace in which this code will be run.
*
* @see http://php.net/manual/en/language.namespaces.rationale.php
*/
namespace tutorial\hello;
/*
* Import the predefined line ending constant which will differ depending
* on the system on which this code is executed.
* Since this is a predefined constant it is imported from the root namespace.
*
* @see http://php.net/manual/fa/reserved.constants.php
*/
use \PHP_EOL;
/*
* Use the echo language construct to return a string to STDOUT.
* By using single parentheses the string contents will not be processed by
* the PHP interpreter, and when using the PHP_EOL constant the output will
* be correct on whatever system this script is run.
*
* @see http://php.net/manual/en/function.echo.php
*/
echo 'Hello world' . PHP_EOL;