php--0与空的判断

使用empty()函数判断,两者都是true

$a=0;
if(trim($a)=="")
{
    echo '数字0';
}

  

posted @ 2019-07-06 02:35  PHPer100  阅读(1382)  评论(0)    收藏  举报