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