• PHP Video Tutorials

PHP - Function XML Set Processing Instruction Handler



Syntax

bool xml_set_processing_instruction_handler ( resource $parser , callable $handler )

Definition and Usage

It used to set up processing instruction (PI) handler

Return Values

It returns True on success or false on failure

Parameters

Sr.No Parameters & Description
1

Parser

A reference to the XML parser to use inside the object.

2

Handler

It is used to specifies name of function that must exist when xml_parse()

The handler must have below functions

Sr.No Parameters & Description
1

parser

Specifies a variable containing the XML parser calling the handler

2

target

Specifies a variable containing processing instruction target

3

data

Specifies a variable containing processing instruction data

php_function_reference.htm
Advertisements