Working state
This commit is contained in:
29
HelloWorld.php
Normal file
29
HelloWorld.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
# File: helloworld.php
|
||||
#
|
||||
# Description: This file exemplifies printing 'Hello world!' in PHP.
|
||||
#
|
||||
# Package: AniNIX::Foundation/HelloWorld
|
||||
# Copyright: WTFPL
|
||||
#
|
||||
# Author: DarkFeather <darkfeather@aninix.net>
|
||||
|
||||
|
||||
### 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();
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user