You are here: Re: When is an array not an array? « PHP Programming Language « IT news, forums, messages
Re: When is an array not an array?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация