PHP instance: a common numeric judgment function. Commonly used object type judgment HTMLHEADTITLE commonly used value judgment function TITLEHEADBODY? Judge array $ colorsarray (red, blue, green); if (is_array ($ colors) {print (col common object type judgment
Common numeric judgment functions
// Determine the array
$ Colors = array ("red", "blue", "green ");
If (is_array ($ colors ))
{
Print ("colors is an array "."
");
}
// Double-precision data determination
$ Temperature = 15.23;
If (is_double ($ Temperature ))
{
Print ("Temperature is a double "."
");
}
// Integer judgment
$ PageCount = 2234;
If (is_integer ($ PageCount ))
{
Print ("$ PageCount is an integer "."
");
}
// Object judgment
Class widget
{
Var $ name;
Var $ length;
}
$ Thing = new widget;
If (is_object ($ thing ))
{
Print ("thing is an object "."
");
}
// Character judgment
$ Greeting = "Hello ";
If (is_string ($ Greeting ))
{
Print ("Greeting is a string "."
");
}
?>
Commonly used numeric judgment functions of the html head title/head body? // Judge the array $ colors = array ("red", "blue", "green"); if (is_array ($ colors) {print ("col...