HelloWorld/HelloWorld.php

30 lines
494 B
PHP
Raw Normal View History

2019-04-15 15:58:35 -05:00
<?php
# File: HelloWorld.php
2019-04-15 15:58:35 -05:00
#
# Description: This file exemplifies printing 'Hello world!' in PHP.
#
# Package: AniNIX/HelloWorld
2019-04-15 15:58:35 -05:00
# Copyright: WTFPL
#
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
2019-04-15 15:58:35 -05:00
### String to print
$_helloWorld="Hello world!";
2019-04-15 15:58:35 -05:00
### <summary>
### Prints 'Hello world!'
### </summary>
function PrintHelloWorld() {
global $_helloWorld;
echo $_helloWorld."\n";
2019-04-15 15:58:35 -05:00
}
### MAIN
if ( basename(__FILE__) == "HelloWorld.php") {
PrintHelloWorld();
}
?>