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