Easy Tutorial
❮ Func Date Parse From Format Func Math Decbin ❯

PHP xml_set_unparsed_entity_decl_handler() Function



Definition and Usage

The xml_set_unparsed_entity_decl_handler() function specifies the function to be called when the parser encounters an unparsed 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 Specifies the function to be called when the parser finds an unparsed entity.

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

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

Tips and Notes

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


Example


❮ Func Date Parse From Format Func Math Decbin ❯