PHP xml_parser_get_option()Functions
Complete PHP XML Reference Manual
Definition and Usage
The xml_parser_get_option() function gets an option from an XML parser.
If successful, the function returns the option value. If it fails, it returns FALSE and an error.
Syntax
xml_parser_get_option(parser,option,value)
| Parameters | Description |
|---|---|
| parser | Required. Specifies the XML parser to use. |
| option | Required. Specifies the option to retrieve. Possible values:
|
Examples
<?php
$xmlparser = xml_parser_create();
echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);
xml_parser_free($xmlparser);
?>
$xmlparser = xml_parser_create();
echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);
xml_parser_free($xmlparser);
?>
Complete PHP XML Reference Manual Other Extensions