标签:
<?php $a=‘‘; $b=NULL; $c=0; $d=-1; $e=false; $f=true; echo ‘a is empty:‘.empty($a).‘<br/>‘; echo ‘b is empty:‘.empty($b).‘<br/>‘; echo ‘c is empty:‘.empty($c).‘<br/>‘; echo ‘d is empty:‘.empty($d).‘<br/>‘; echo ‘e is empty:‘.empty($e).‘<br/>‘; echo ‘f is empty:‘.empty($f).‘<br/>‘;
PHPer使用empty()对 ‘‘ ,NULL, false,0 的判断,你会了吗?
标签:
原文地址:http://my.oschina.net/u/1270458/blog/365100