Created
May 11, 2011 01:16
-
-
Save bihicheng/965730 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 | |
| /** | |
| * different from empty is_null isset | |
| */ | |
| $t = ''; | |
| //is a string "" !isset($t) return true ;!is_null($t) return ture;empty ($t) return true; | |
| $t; | |
| // = "Hello"; //is NULL;!isset($t) return false ;!is_null($t) return false empty ($t) return ture; | |
| //first $t is init ;second $t have the same address of memory but doesn't init | |
| //not overwrite first $t's value | |
| //NULL and empty string all empty to empty function | |
| //if(isset($t)) | |
| if (!is_null($t)){ | |
| var_dump($t); | |
| } | |
| else | |
| echo '$t存在但为NULL'; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maintaining healthy and beautiful trees is essential for enhancing the overall aesthetics and value of properties in Woodland Hills, California. However, ensuring the proper care of trees requires expertise and experience that the average property owner may lack. treeservicewoodlandhillsca.com