|
get_resourcesReturns active resources Description
array get_resources
([ string
$type
] )Returns an array of all currently active resources, optionally filtered by resource type. Parameters
Return ValuesReturns an array of currently active resources, indexed by resource number. Examples
Example #1 Unfiltered get_resources
<?phpThe above example will output something similar to:
array(1) {
[1]=>
resource(1) of type (stream)
}
Example #2 Filtered get_resources
<?phpThe above example will output something similar to:
array(1) {
[1]=>
resource(1) of type (stream)
}
array(0) {
}
See Also
|