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

PHP XML Function Manual

The xml_set_character_data_handler() function is used to establish a character data handler.

Syntax

bool xml_set_character_data_handler ( resource $parser , callable $handler )

Definition and usage

 Specifies the character data handling function for the XML parser pointed to by the parser variable.

Return value

Returns true if successful, false if failed

Parameter

Serial numberParameters and descriptions
1

parser

Reference to the XML parser used to establish the character data handler.

2

handle

It is used to specify the function used as the event handler

PHP XML Function Manual