Home > PHP > Function > Variable handling > is_object()

is_object()

is_object - Finds whether a variable is an object

Syntax

bool is_object (mixed $var)

Arguments

  • var - The variable being evaluated.

Description

Finds whether the given variable is an object.

Version

PHP 4, 5

Return value

Returns TRUE if var is an object, FALSE otherwise.