HelloWorld/HelloWorld.php

30 lines
494 B
PHP

<?php
# File: HelloWorld.php
#
# Description: This file exemplifies printing 'Hello world!' in PHP.
#
# Package: AniNIX/HelloWorld
# Copyright: WTFPL
#
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
### 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();
}
?>