在php中这样写是错误的:
empty(trim($string));
empty函数只能判断一个变量是否为空,而不能判断一个字符串(或者其他的值,包括函数返回值)为空。
posted on 2011-06-10 17:44 dawnruby 阅读(160) 评论(0) 收藏 举报