Re: When is an array not an array?
- From: PleegWat <pleegwat@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 23:27:06 +0100
In article <q13ck2d3tc2204gdsi3db9q0bds510pmsj@xxxxxxx>, Andy Hassall
says...
Failing that, it'd be somewhat useful if DOMNodeList had a method to convert
itself into an actual array, but it doesn't seem to have that either.
If, as whiskey says, the nodes are properties of the object, you can do
an explicit cast of the object to an array:
$arrayofnodes = (array)$nodelist;
--
PleegWat
Remove caps to reply
.
- Follow-Ups:
- Re: When is an array not an array?
- From: whiskey
- Re: When is an array not an array?
- References:
- When is an array not an array?
- From: Andrew C
- Re: When is an array not an array?
- From: Andy Hassall
- When is an array not an array?
- Prev by Date: PHP + Upload + picture script
- Next by Date: Re: PHP + Upload + picture script
- Previous by thread: Re: When is an array not an array?
- Next by thread: Re: When is an array not an array?
- Index(es):
Relevant Pages
|