Home > PHP > Function > Variable handling > get_resource_type()

get_resource_type()

get_resource_type - Returns the resource type

Syntax

string get_resource_type (resource $handle)

Arguments

  • handle - The evaluated resource handle.

Description

This function gets the type of the given resource.

Version

PHP 4.0.2, 5

Return value

If the given handle is a resource, this function will return a string representing its type. If the type is not identified by this function, the return value will be the string Unknown.