XML_Statistics::countPI
Synopsis
integer XML_Statistics::countPI (
string $target = null
)
Description
Counts how often a certain processing instruction (e.g. <?PHP) is used in the document. The target is the 'language' of the processing instruction. You only need to specify the name, without the leading question mark. If no target is specified it will count the total number of processing instructions.
Parameter
-
string $target
- target of the processing instruction
Return value
integer occurences of the processing instruction
Note
This function can not be called statically.