• PHP Video Tutorials

PHP - Function XML Parser Get Option



Syntax

xml_parser_get_option(parser,option,value)

Definition and Usage

It used to get options from an XML parser

Return Values

It returns an option value as 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 get

Example

Try out the following example

<?php
   $input = xml_parser_create();
   
   echo xml_parser_get_option($input, XML_OPTION_CASE_FOLDING);
   xml_parser_free($input);
?>

This will produce following result −

1
php_function_reference.htm
Advertisements