IS_OBJECT
Finds whether a variable is an object
SYNTAX
is_object ( mixed $var ) : bool
PARAMETERS
var
The variable being evaluated.
RETURN
Returns TRUE if var is an object, FALSE otherwise.
EXAMPLES
1
object(stdClass)#1 (0) {
}
bool(true)
2
object(myclass)#1 (0) {
}
bool(true)