is_resource(3) php man page | unix.com

Man Page: is_resource

Operating Environment: php

Section: 3

IS_RESOURCE(3)								 1							    IS_RESOURCE(3)

is_resource - Finds whether a variable is a resource

SYNOPSIS
bool is_resource (mixed $var)
DESCRIPTION
Finds whether the given variable is a resource.
PARAMETERS
o $var - The variable being evaluated.
RETURN VALUES
Returns TRUE if $var is a resource, FALSE otherwise.
EXAMPLES
Example #1 is_resource(3) example <?php $db_link = @mysql_connect('localhost', 'mysql_user', 'mysql_pass'); if (!is_resource($db_link)) { die('Can't connect : ' . mysql_error()); } ?>
NOTES
Note is_resource(3) is not a strict type-checking method: it will return FALSE if $var is a resource variable that has been closed.
SEE ALSO
The resource-type documentation, get_resource_type(3). PHP Documentation Group IS_RESOURCE(3)
Related Man Pages
is_numeric(3) - php
mysql_select_db(3) - php
is_scalar(3) - php
is_float(3) - php
mysql_close(3) - php
Similar Topics in the Unix Linux Community
Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture
Using alias after issuing 'su - user'
sed parser behaving strange on replacing multiple words in multiple files
Why this script is not working as 'expected' when doing ssh with while read ... really confused?
Linux PaceMaker Equivalent to a SharedAddress Resource Type