PHP is_object() function
In this chapter you will learn:
- Description for PHP is_object() function
- Syntax for PHP is_object() function
- Parameter for PHP is_object() function
- Return value for PHP is_object() function
- Example - Is it an object
Description
is_object(value) returns true if value is an object.
Syntax
is_object(value)
Parameter
- value is the variable being type checked.
Return
Returns true if value is an object.
Example
Is it an object.
<?php//from ja v a2 s . c o m
$values = array(2, "2", 2.5, "2.5", null, true);
var_dump(is_object($values));
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Description for PHP is_resource() function
- Syntax for PHP is_resource() function
- Parameter for PHP is_resource() function
- Return value for PHP is_resource() function
Home » PHP Tutorial » PHP Data Type Functions