XML_Statistics::getMaxDepth (Previous) (Next) XML_Statistics::countDataChunks

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

XML_Statistics::countAttribute()

XML_Statistics::countAttribute() -- count the occurences of an attribute

Description

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

With the second parameter you may limit the search to a special tag.

Parameter

  • string $attribute - if no attribute name is supplied, all attributes are counted

  • string $tagname - this allows you to limit your search to a tag

Return value

integer occurences of the attribute or a PEAR_Error if the attribute could not be found.

Note

This function can not be called statically.

XML_Statistics::getMaxDepth (Previous) (Next) XML_Statistics::countDataChunks

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.