Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions hello-world.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try function helloWorld($name = "") 😉!

{
//
// YOUR CODE GOES HERE
//
if($name == null){
echo "Hello,world";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Hello, World!" not "Hello,world" 😡!

}
else {
echo "Hello," . " " . $name;
}
}
HelloWorld("Alice");
?>