2019-04-15 15:58:35 -05:00
|
|
|
<?php
|
|
|
|
|
2019-04-15 16:21:46 -05:00
|
|
|
# File: HelloWorld.php
|
2019-04-15 15:58:35 -05:00
|
|
|
#
|
|
|
|
# Description: This file exemplifies printing 'Hello world!' in PHP.
|
|
|
|
#
|
|
|
|
# Package: AniNIX::Foundation/HelloWorld
|
|
|
|
# Copyright: WTFPL
|
|
|
|
#
|
|
|
|
# Author: DarkFeather <darkfeather@aninix.net>
|
|
|
|
|
|
|
|
|
|
|
|
### String to print
|
2019-04-15 16:21:46 -05:00
|
|
|
$_helloWorld="Hello world!";
|
2019-04-15 15:58:35 -05:00
|
|
|
|
|
|
|
### <summary>
|
|
|
|
### Prints 'Hello world!'
|
|
|
|
### </summary>
|
|
|
|
function PrintHelloWorld() {
|
2019-04-15 16:21:46 -05:00
|
|
|
global $_helloWorld;
|
|
|
|
echo $_helloWorld."\n";
|
2019-04-15 15:58:35 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
### MAIN
|
|
|
|
if ( basename(__FILE__) == "HelloWorld.php") {
|
|
|
|
PrintHelloWorld();
|
|
|
|
}
|
|
|
|
?>
|