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 Parameter does not point to a valid parser or option Invalid parameter, 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); ?>