PHP xml_parser_get_option() Function
Definition and Usage
The xml_parser_get_option() function retrieves the option setting information from the XML parser.
Syntax
xml_parser_get_option(parser,option)
Parameter | Description |
---|---|
parser | Required. Specifies the XML parser to be used. |
option |
Required. Specifies the name of the setting option to be obtained. Possible values:
|
Description
if parser The parameter does not point to a valid parser or option If the parameter is invalid, the function will return FALSE (and generate an E_WARNING warning). Otherwise, it will return the value of the specified option setting. Otherwise, it will return the value of the specified option setting.
Example
<?php $xmlparser = xml_parser_create(); echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING); xml_parser_free($xmlparser); ?>