Created
April 9, 2025 22:16
-
-
Save edutrul/dd93080b653e228cc64a175f647d1126 to your computer and use it in GitHub Desktop.
Session 3
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 | |
$a = 5; | |
$b = 7; | |
$result = $a + $b; | |
checkIfTomorrowWillBeAfatalDay(FALSE); | |
print 'The total of this sum is: ' . $result; | |
/** | |
* Check if tomorrow will be a fatal day. | |
* | |
* @param bool $isTomorrowAfatalDay | |
* TRUE or false wether is a fatal day. | |
*/ | |
function checkIfTomorrowWillBeAfatalDay($isTomorrowAfatalDay) { | |
if ($isTomorrowAfatalDay) { | |
print 'Omg!!!!'; | |
} | |
else { | |
print 'Phew... :)'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment