Skip to content

Instantly share code, notes, and snippets.

@kylekatarnls
Created August 2, 2019 17:20
<?php
function getWaterState($degrees)
{
if ($degrees < 0) {
return 'This is solid ice';
}
if ($degrees > 100) {
return 'This is gaz water';
}
return 'This is liquid water';
}
function getImportantWaterState($degrees)
{
return uppercase(getWaterState($degrees));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment