Skip to content

Instantly share code, notes, and snippets.

@elminson
Created July 11, 2020 00:42
Show Gist options
  • Save elminson/caf7dc8bf426e76b817e9760873e419e to your computer and use it in GitHub Desktop.
Save elminson/caf7dc8bf426e76b817e9760873e419e to your computer and use it in GitHub Desktop.
function getWaterState($degrees)
{
if ($degrees < 0) {
return 'This is solid ice';
}
if ($degrees > 100) {
return 'This is gaz water';
}
return 'This is liquid water';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment