Re: identify $handles in $resource ?



On Tue, 30 Dec 2008 07:13:31 -0500, jstucklex@xxxxxxxxxxxxx wrote:
Curtis wrote:
On Mon, 29 Dec 2008 12:30:22 -0500, jstucklex@xxxxxxxxxxxxx wrote:
Greg Russell wrote:
How does one identify the "handles" that are available in any given
$resource, please?
They are returned when that resource is allocated. For instance,
fopen() returns a handle to the file.

Additionally, check out `get_resource_type()'.

<http://php.net/get_resource_type>


Which identifies what resource the handle is for - not what handles are
available for the resource.

I was merely suggesting related information that may be useful.

Also, depending upon which type of resource you have, you can get an
idea of how to properly handle it. Personally, I haven't had much
need for it yet, but it is possible.

--
Curtis
$email = str_replace('sig.invalid', 'gmail.com', $from);
.