PHP empty操作记录

最近老用到自响应页面.总是在empty和isset中间纠结.今天就把它记录下来.免得忘记吧.
empty($x) 等价于 !isset($x) || $x
!empty($x) 等级于 isset($x) && $x

posted @ 2011-11-06 11:39  潺莪  阅读(131)  评论(0编辑  收藏  举报