|
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]
|