English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of PHP xml_set_unparsed_entity_decl_handler() function

PHP XML Function Manual

The xml_set_unparsed_entity_decl_handler() function is used to establish a handler for the unprocessed entity definition declaration.

Syntax

bool xml_set_unparsed_entity_decl_handler ( resource $parser , callable $handler )

Definition and usage

It is used to set the handler for the unprocessed entity declaration

Return value

Returns True on success, False on failure

Parameters

Serial numberParameters and descriptions
1

Parser

A reference to the XML parser used internally in the object.

2

Handler

It is used to specify the name of the function that must exist when xml_parse() is called

The handler must have the following functions

Serial numberParameters and descriptions
1

parser

Specify a variable containing the XML parser that calls the processing program

2

target

Specify a variable containing the target of the processing instruction

3

entity_name

The name of the entity to be defined.

4

system_id

It is used to identify external entities.

5

public_id

It is used to publicly identify external entities.

PHP XML Function Manual