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_element_handler() function

PHP XML Function Manual

The xml_set_element_handler() function is used to establish start and end element handlers.

Syntax

xml_set_element_handler(parser, start, end)

Definition and usage

Establishes an element handler function for the XML parser specified by the parser parameter. The parameters start and end are strings representing function names, which must exist when the xml_parse() function is called on the parser specified by parser.

Return value

Returns True on success, returns false on failure

Parameter

Serial numberParameters and descriptions
1

parser

Reference to the XML parser, used to establish start and end element handlers.

2

start

It is used to specify the function to be called at the beginning of the element

3

end

Used to specify the function to be called at the end of the element

PHP XML Function Manual