php常用的數值判斷函數 / /判斷陣列
$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"."
");
}
//整數判斷
$PageCount = 2234;
if(is_integer($PageCount))
{
if(is_integer($PageCount))
{
print("$PageCount is an integer"."
");
}
//物件判斷
class widget
{
var $name;
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"."
");
}
?>
以上就介紹了phison-up10量產工具v1.78.00 常用的php物件類型判斷,包含了phison-up10量產工具v1.78.00方面的內容,希望對PHP教學有興趣的朋友有幫助。