2019-04-15 15:58:35 -05:00
|
|
|
<?php
|
|
|
|
|
2019-04-15 16:21:46 -05:00
|
|
|
# File: HelloWorld.php
|
2023-10-03 12:43:34 -05:00
|
|
|
#
|
|
|
|
# Description: This file exemplifies printing 'Hello, World!' in PHP.
|
|
|
|
#
|
2021-12-01 13:12:27 -06:00
|
|
|
# Package: AniNIX/HelloWorld
|
2019-04-15 15:58:35 -05:00
|
|
|
# Copyright: WTFPL
|
2023-10-03 12:43:34 -05:00
|
|
|
#
|
2021-12-01 13:12:27 -06:00
|
|
|
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
|
2019-04-15 15:58:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
### String to print
|
2023-10-03 12:43:34 -05:00
|
|
|
$_helloWorld="Hello, World!";
|
2019-04-15 15:58:35 -05:00
|
|
|
|
|
|
|
### <summary>
|
2023-10-03 12:43:34 -05:00
|
|
|
### Prints 'Hello, World!'
|
2019-04-15 15:58:35 -05:00
|
|
|
### </summary>
|
2023-10-03 12:43:34 -05:00
|
|
|
function PrintHelloWorld() {
|
2019-04-15 16:21:46 -05:00
|
|
|
global $_helloWorld;
|
|
|
|
echo $_helloWorld."\n";
|
2019-04-15 15:58:35 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
### MAIN
|
|
|
|
if ( basename(__FILE__) == "HelloWorld.php") {
|
|
|
|
PrintHelloWorld();
|
|
|
|
}
|
|
|
|
?>
|