PHP xml_parser_get_option () function
Definition and Usage
xml_parser_get_option () function to get options from an XML parser.
If successful, the function returns the value of the option. If it fails, FALSE, and an error is returned.
grammar
xml_parser_get_option(parser,option,value)
参数 | 描述 |
---|---|
parser | 必需。规定要使用的 XML 解析器。 |
option | 必需。规定要获取的选项。可能的值:
|
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