HelloWorld/HelloWorld.php
2023-10-03 12:43:34 -05:00

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