php 中的empty()
PHP 2009/9/3 15:41:20 点击:不统计
php 中的empty()
关键词:php empty ,empty中的各类值
比如:$X为一个变量,在一下赋值中empty()返回的内容
变量 返回值
$x =""; true
$x =null; true
var $x;(not set) true
$x =array(); true
$x =false; true
$x =15; false
$x =1; false
$x =0; true
$x =-1; false
$x ="15"; false
$x ="1"; false
$x ="0"; true
$x ="-1"; false
$x ="foo"; false
$x ="true"; false
$x ="false"; false
·上一篇:php 中的gettype() >> ·下一篇:php 中的isnull() >>