IS_RESOURCE
Finds whether a variable is a resource
SYNTAX
is_resource ( mixed $var ) : bool
PARAMETERS
var
The variable being evaluated.
RETURN
Returns TRUE if var is a resource, FALSE otherwise.
EXAMPLES
1
resource(2) of type (stream)
bool(true)
2
resource(3) of type (stream)
bool(true)
3
resource(3) of type (Unknown)
bool(false)