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

is_resource()

is_resource - Finds whether a variable is a resource

Syntax

bool is_resource (mixed $var)

Arguments

  • var - The variable being evaluated.

Description

Finds whether the given variable is a resource.

Version

PHP 4, 5

Return value

Returns TRUE if var is a resource, FALSE otherwise.