Menu Samaritan's Purse

GET_RESOURCE_TYPE

Returns the resource type

SYNTAX

get_resource_type ( resource $handle ) : string

PARAMETERS

handle

The evaluated resource handle.

RETURN

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. This function will return NULL and generate an error if handle is not a resource.

EXAMPLES

1

stream

2

stream

3

Unknown

PHP