HelloWorld/HelloWorld.php

30 lines
492 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();
}
?>