• PHP Video Tutorials

PHP - Function XML Parser Set Option



Syntax

xml_parser_set_option(parser,option,value)

Definition and Usage

It used to set options from an XML parser

Return Values

It returns true on success or false on failure

Parameters

Sr.No Parameters & Description
1

parser

A reference to the XML parser

2

option

It is used to specifies option to set

Example

Try out the following example

<?php
   $input = xml_parser_create();
   
   xml_parser_set_option($input, XML_OPTION_SKIP_WHITE, 1);
   xml_parser_free($input);
?>
php_function_reference.htm
Advertisements