首頁 >後端開發 >php教程 >http://67.220.92.14/forum/inde PHP的幾個常用數字判斷函數程式碼

http://67.220.92.14/forum/inde PHP的幾個常用數字判斷函數程式碼

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-07-29 08:48:301609瀏覽

複製程式碼 程式碼如下:




常用的數值判斷函數 判斷
尺寸
$colors = array("red", "blue", "green");
if(is_array($colors))
{
print("colors is an array"."
");
}
}
//雙精確度數判斷
$Temperature = 15.23;
if(is_double($Temperature))
{
print("Temperature is a double"."
");
}
//整數= 2234;
if(is_integer($PageCount))
{
print("$PageCount is an integer"."
");
}
//物件判斷
class widget
var $length;
}
$thing = new widget;
if(is_object($thing))
{
print("thing is an object"."
");
}
/字元Greeting = "Hello";
if(is_string($Greeting))
{
print("Greeting is a string"."
");
}
?>




以上就介紹了http://67.220.92.14/forum/inde PHP的幾個常用數字判斷函數程式碼,包括了http://67.220.92.14/forum/inde方面的內容,希望對PHP教程有興趣的朋友有所幫助。


陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn