Php Get_Resource_Type Function
# PHP get_resource_type() Function
[PHP Available Functions](#)
**get_resource_type()** returns the type of a resource.
Version Requirement: PHP 4 >= 4.0.2, PHP 5, PHP 7
### Syntax
string get_resource_type ( resource $handle )
Parameter Description:
* $handle: The handle.
### Return Value
This function returns a string representing the type of the resource passed to it. If the argument is not a valid resource, an error will be generated.
### Example
## Example
doc) . PHP_EOL; // Prints: domxml document?>
[PHP Available Functions](#)
YouTip