XML_Statistics::countTagsInDepth

XML_Statistics::countTagsInDepth()

XML_Statistics::countTagsInDepth() -- count the tags in a certain depth

Description

Thru nesting a tag can be at a certain depth. The root tag is at depth zero. By counting the amount of tags in a depth you can count the number of recordsets in an XML document.

Parameter

  • integer $depth - tag depth (0 is root)

Return value

integer number of tags in this depth

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.