|
Posted by PleegWat on 10/30/06 22:27
In article <q13ck2d3tc2204gdsi3db9q0bds510pmsj@4ax.com>, 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
Navigation:
[Reply to this message]
|