Skip to content

Instantly share code, notes, and snippets.

@edutrul
Created April 9, 2025 22:16
Show Gist options
  • Save edutrul/dd93080b653e228cc64a175f647d1126 to your computer and use it in GitHub Desktop.
Save edutrul/dd93080b653e228cc64a175f647d1126 to your computer and use it in GitHub Desktop.
Session 3
<?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