php man page for get_resource_type

Query: get_resource_type

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GET_RESOURCE_TYPE(3)							 1						      GET_RESOURCE_TYPE(3)

get_resource_type - Returns the resource type

SYNOPSIS
string get_resource_type (resource $handle)
DESCRIPTION
This function gets the type of the given resource.
PARAMETERS
o $handle - The evaluated resource handle.
RETURN VALUES
If the given $handle is a resource, this function will return a string representing its type. If the type is not identified by this func- tion, the return value will be the string Unknown. This function will return FALSE and generate an error if $handle is not a resource.
EXAMPLES
Example #1 get_resource_type(3) example <?php // prints: mysql link $c = mysql_connect(); echo get_resource_type($c) . " "; // prints: stream $fp = fopen("foo", "w"); echo get_resource_type($fp) . " "; // prints: domxml document $doc = new_xmldoc("1.0"); echo get_resource_type($doc->doc) . " "; ?> PHP Documentation Group GET_RESOURCE_TYPE(3)
Related Man Pages
readdir(3) - php
fwrite(3) - php
fgetc(3) - php
fprintf(3) - php
rewind(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
Please Welcome Nicki Paul to the Moderator Team!