Skip to content

Instantly share code, notes, and snippets.

@bihicheng
Created May 11, 2011 01:16
Show Gist options
  • Save bihicheng/965730 to your computer and use it in GitHub Desktop.
Save bihicheng/965730 to your computer and use it in GitHub Desktop.
<?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';
?>
@lucas3790
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment