Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17202 программиста и 1833 робота. Сейчас ищут 1696 программистов ...
XML_Statistics::countAttribute
Вернуться к: XML_Statistics
XML_Statistics::countAttribute
XML_Statistics::countAttribute() – count the occurences of an attribute
Synopsis
require_once 'XML/Statistics.php';
integer XML_Statistics::countAttribute ( string $attribute = null , string $tagname = null )
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