is_object Finds whether a variable is an object &reftitle.description; boolis_object mixedvar Finds whether the given variable is an object. &reftitle.parameters; var The variable being evaluated. &reftitle.returnvalues; Returns &true; if var is an object, &false; otherwise. &reftitle.examples; <function>is_object</function> example students); } // Declare a new class instance and fill up // some values $obj = new stdClass; $obj->students = Array('Kalle', 'Ross', 'Felipe'); var_dump(get_students(NULL)); var_dump(get_students($obj)); ?> ]]> &reftitle.notes; This function will return &false; if used on an unserialized object where the class definition is not present (even though gettype returns object). &reftitle.seealso; is_bool is_int is_float is_string is_array