is_resource

(PHP 4 >= 4.0b4)

is_resource --  Finds whether a variable is a resource

Description

bool is_resource (mixed var)

is_resource() returns TRUE if the variable given by the var parameter is a resource, otherwise it returns FALSE.

See the documentation on the resource-type for more information.