Last active
August 29, 2015 14:05
-
-
Save icemancast/5afc40748c46d1217cfd to your computer and use it in GitHub Desktop.
Elaine Likes Me Alot
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 | |
// Remember the class is aware. | |
// ========================== | |
function askElaine() { | |
echo 'Do you like me yes || no!' . PHP_EOL; | |
} | |
function doesLikeMe() { | |
echo 'I just want to be friends!' . PHP_EOL; | |
} | |
function passNoteToElaine() { | |
askElaine(); | |
doesLikeMe(); | |
} | |
passNoteToElaine(); | |
// Happily Ever After | |
// ========================== | |
function askElaine() { | |
return 'Do you like me yes || no!' . PHP_EOL; | |
} | |
function doesLikeMe() { | |
return true; | |
} | |
function passNoteToElaine() { | |
echo askElaine(); | |
if(doesLikeMe()) | |
{ | |
return 'Want to go around' . PHP_EOL; | |
} | |
} | |
echo passNoteToElaine(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment