Last active
December 19, 2017 16:37
-
-
Save lfalmeida/0f658ac4c959373990a8dacebffbfeea 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 | |
$var = "yes"; | |
var_dump(filter_var($var, FILTER_VALIDATE_BOOLEAN)); | |
# A saída do código acima seria: | |
# bool(true) | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment