Skip to content

Instantly share code, notes, and snippets.

@Theaxiom
Created March 20, 2017 02:24
Show Gist options
  • Save Theaxiom/fddd952c8a12903c169542aecc921d1d to your computer and use it in GitHub Desktop.
Save Theaxiom/fddd952c8a12903c169542aecc921d1d to your computer and use it in GitHub Desktop.
PHP yes/no function
/**
* @param $bool
* @return string
*/
function yn($bool)
{
return ($bool)?'Yes':'No';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment