网站制作学习网PHP→正文:php 中的gettype()
字体:

php 中的gettype()

PHP 2009/9/3 15:39:02  点击:不统计

php 中的gettype()

关键词:php gettype ,gettype中的各类值

比如:$X为一个变量,在一下赋值中 gettype返回的内容

变量 返回值

$x =""; string

$x =null; null

var $x;(not set) null

$x =array(); array

$x =false; boolean

$x =15; integer

$x =1; integer

$x =0; integer

$x =-1; integer

$x ="15"; string

$x ="1"; string

$x ="0"; string

$x ="-1"; string

$x ="foo"; string

$x ="true"; string

$x ="false"; string

·上一篇:php fopen >>    ·下一篇:php 中的isnull() >>
推荐文章
最新文章