diff --git a/hello-world.php b/hello-world.php index 4c88d22..d2f3c6e 100644 --- a/hello-world.php +++ b/hello-world.php @@ -4,10 +4,14 @@ // This is only a SKELETON file for the "Hello World" exercise. // It's been provided as a convenience to get you started writing code faster. // - -function helloWorld($name) +function HelloWorld($name) { - // - // YOUR CODE GOES HERE - // + if($name == null){ + echo "Hello,world"; + } + else { + echo "Hello," . " " . $name; + } } + HelloWorld("Alice"); + ?>