Created
August 2, 2019 17:14
-
-
Save kylekatarnls/e92b48c8fb29d19490f5e2093a60a935 to your computer and use it in GitHub Desktop.
Revisions
-
kylekatarnls created this gist
Aug 2, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <?php function getWaterState($degrees, $important = false) { if ($degrees < 0) { $state = 'This is solid ice'; } elseif ($degrees > 100) { $state = 'This is gaz water'; } else { $state = 'This is liquid water'; } if ($important) { $state = uppercase($state); } return $state; }