diff --git a/hello-world.php b/hello-world.php index 4c88d22..179ce2b 100644 --- a/hello-world.php +++ b/hello-world.php @@ -5,9 +5,13 @@ // It's been provided as a convenience to get you started writing code faster. // -function helloWorld($name) -{ - // - // YOUR CODE GOES HERE - // -} + + function helloWorld($name = null) + { + if ($name === null){ + return "Hello, World!"; + } + else { + return "Hello!". " ".($name); + } + }