HelloWorld/HelloWorld.php
2019-04-15 15:58:35 -05:00

30 lines
491 B
PHP

<?php
# File: helloworld.php
#
# Description: This file exemplifies printing 'Hello world!' in PHP.
#
# Package: AniNIX::Foundation/HelloWorld
# Copyright: WTFPL
#
# Author: DarkFeather <darkfeather@aninix.net>
### String to print
$helloWorld="Hello world!";
### <summary>
### Prints 'Hello world!'
### </summary>
function PrintHelloWorld() {
global $helloWorld;
echo $helloWorld."\n";
}
### MAIN
if ( basename(__FILE__) == "HelloWorld.php") {
PrintHelloWorld();
}
?>