The xml_parser_get_option() function gets options from an XML parser.
PHP xml_parser_get_option() Function has the following syntax.
xml_parser_get_option(parser,option,value)
Parameter | Is Required | Description |
---|---|---|
parser | Required. | XML parser to use |
option | Required. | option to get. |
Possible values for option:
This function returns the options value on success, or FALSE and an error on failure.
Get options from an XML parser
<?php
$xmlparser = xml_parser_create();
echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);
xml_parser_free($xmlparser);
?>