摘要: PHP中有很多函数功能类似,却有着细微的差别... is_null, empty, isset, unset 我们先来看看这4个函数的描述。 isset 判断变量是否已存在(配置) unset 把变量删除(释放)掉 empty判断变量是否为空 is_null 判断变量是否为NULL 下面一张表可以很清楚的说明他们之间的关系变量emptyis_nullisset $a=””truefalsetrue $a=nulltruetruefalse var $atruetruefalse $a=array()truefalsetrue $a=falsefalsefalsetrue $a=15falsef 阅读全文
posted @ 2012-07-15 10:33 茗迹周 阅读(186) 评论(0) 推荐(0) 编辑