Created
September 26, 2017 16:47
-
-
Save mfairchild365/e0b5a36a8d1c5164f7f515dfcb33d82c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getMessage($hello=false){ | |
return ($hello)?'hello':'bye'; | |
} | |
//What happens in the following scenarios | |
//scenario 1 | |
echo getMessage(); | |
//scenario 2 | |
echo getMessage(false); | |
//scenario 3 | |
echo getMessage(true); | |
//scenario 4 | |
getMessage(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment