Easy Tutorial
❮ Func Filesystem Chown Func String Ucfirst ❯

PHP xml_set_external_entity_ref_handler() Function



Definition and Usage

The xml_set_external_entity_ref_handler() function specifies the function to be called when the parser encounters an external entity in the XML document.

The function returns TRUE on success and FALSE on failure.

Syntax

Parameter Description
parser Required. Specifies the XML parser to use.
handler Required. Specifies the function to be called when the parser finds an external entity.

The function specified by the "handler" parameter must have five parameters:

Parameter Description
parser Required. Specifies a variable containing the XML parser that invoked the handler.
name Required. Specifies a variable containing the name of the external entity.
base Required. Specifies the base for resolving the system identifier (system_id) of the external entity. Currently, this parameter is usually set to NULL.
system_id Required. Specifies the system identifier of the external entity.
public_id Required. Specifies the public identifier of the external entity.

Tips and Notes

Note: The handler parameter can also be an array containing an object reference and method name.


Example


❮ Func Filesystem Chown Func String Ucfirst ❯