XML_Statistics::countPI

XML_Statistics::countPI() – count the occurences of a processing instruction

Synopsis

require_once 'XML/Statistics.php';

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.

count the tags in a certain depth (Previous) count the occurences of an external entitity (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.