XML_Statistics::countExternalEntity() – count the occurences of an external entitity


require_once 'XML/Statistics.php';

integer XML_Statistics::countExternalEntity ( string $name = null )


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


  • string $name - name of the external entity, without '&' and ';'

Return value

integer occurences of the external entity


This function can not be called statically.

count the occurences of a processing instruction (Previous) get the maximum nesting level (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.