在php中,若变量$test没有定义,则:

empty($test)返回true;

!empty($test)返回false;

具体可参考http://www.jb51.net/article/24666.htm

posted on 2015-05-12 14:42  妞溜溜  阅读(1086)  评论(0)    收藏  举报