PHP is_resource() Function

PHP is_resource() Function


Definition and Usage

The function is_resource() checks whether a variable is a resource.

Syntax

bool is_resource ( mixed $value )

Parameters

Sr.No Parameter & Description
1

value

The variable being evaluated.

Return Values

This function returns true if value is a resource, false otherwise. This function is not a strict type-checking method: it will return false if value is a resource variable that has been closed.