Created
November 10, 2017 23:52
-
-
Save scofennell/bb2c3c074aa08e9c02ae9fadc20dd458 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
<?php | |
function my_booler( $var ) { | |
if( $var === 'true' ) { $var = true; } | |
if( $var === 'false' ) { $var = false; } | |
return $var; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment