You are here: Re: php5 XML collection size without looping? « PHP Programming Language « IT news, forums, messages
Re: php5 XML collection size without looping?

Posted by ZeldorBlat on 05/22/07 16:31

On May 22, 4:27 am, "Peter Parker" <spider...@home.com> wrote:
> Does anyone know if there is a method or property in php5 that provides the
> collection size in XML processing? For example,
>
> $collection=$doc->getElementsByTagName("someTag");
>
> where one can get the size of the $collection without looping it? Thanks

According to the manual getElementsByTagName returns a DOMNodeList
object. Also, according to the manual, DOMNodeList has a property
called "length." So, in short, read the manual.

 

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

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