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

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of the PHP xml_set_object() function

PHP XML Function Manual

The xml_set_object() function allows the use of an XML parser within an object.

Syntax

bool xml_set_object(resource $parser, object &$object)

Definition and usage

 Establishes a comment declaration handler function for the XML parser specified by the parser parameter.

Return value

Returns True on success, False on failure.

Parameter

Serial numberParameters and descriptions
1

parser

Reference to the XML parser used within the object.

2

object

It is used to specify information about where to use the XML parser.

PHP XML Function Manual