XML_Statistics::countTag

XML_Statistics::countTag() – count the occurences of a tag

Synopsis

require_once 'XML/Statistics.php';

integer XML_Statistics::countTag ( string $tagname = null )

Description

Counts how often a certain tag is used in the document. If no tagname is specified ot will count the total number of tags.

Parameter

  • string $tagname - name of the tag to count

Return value

integer occurences of the tag

Note

This function can not be called statically.

Analyze an XML string (Previous) count the tags in a certain depth (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.