30 lines
494 B
PHP
30 lines
494 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();
|
|
}
|
|
?>
|