Last active
July 11, 2020 00:45
-
-
Save elminson/9c5f87cad415fa4efa6783156f0aa4ab 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
function getWaterState($degrees) | |
{ | |
$stateMessage = 'This is liquid water'; | |
if ($degrees < 0) { | |
$stateMessage = 'This is solid ice'; | |
} | |
if ($degrees > 100) { | |
$stateMessage = 'This is gaz water'; | |
} | |
return $stateMessage; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment