The function is_resource() checks whether a variable is a resource.
bool is_resource ( mixed $value )
Sr.No | Parameter & Description |
---|---|
1 |
value The variable being evaluated. |
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.