Last active
December 15, 2015 14:49
-
-
Save necenzurat/5277692 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 = NULL "" 0 "0" 1 | |
strlen($var) = 0 0 1 1 1 | |
is_null($var) = TRUE FALSE FALSE FALSE FALSE | |
$var == "" = TRUE TRUE TRUE FALSE FALSE | |
!$var = TRUE TRUE TRUE TRUE FALSE | |
!is_null($var)= FALSE TRUE TRUE TRUE TRUE | |
$var != "" = FALSE FALSE FALSE TRUE TRUE | |
$var = FALSE FALSE FALSE FALSE TRUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment