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_start_namespace_decl_handler() Function

PHP XML Function Manual

The xml_set_start_namespace_decl_handler() function is used to establish the initial namespace declaration handler.

Syntax

bool xml_set_start_namespace_decl_handler ( resource $parser , callable $handler )

Definition and Usage

It is used to establish the initial namespace declaration handler.

Return Value

Returns True on success, and false on failure

Parameters

Serial NumberParameters and Description
1

Parser

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 Description
1

parser

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

2

target

Specify a variable that contains the target of the processing instruction

3

uri

Uniform Resource Identifier (URI) of the namespace.

PHP XML Function Manual