Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP get_resource_type() Function

PHP get_resource_type() Function

PHP Available FunctionsAvailable PHP Functions

get_resource_type() Returns a resource type.

Version requirement: PHP 4 >= 4.0.2, PHP 5, PHP 7

Syntax


string get_resource_type ( resource $handle )

Parameter Description:

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 ; // print: domxml document ?>

PHP Available FunctionsAvailable PHP Functions