从 XML 解析器获取选项:
<?php
$parser=xml_parser_create();
echo "XML_OPTION_CASE_FOLDING: " . xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING) . <br>;
echo "XML_OPTION_TARGET_ENCODING: " . xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING);
xml_parser_free($parser);
?>
运行示例 »
xml_parser_get_option() 函数从 XML 解析器获取选项。
xml_parser_get_option(
parser,
option)
Parameter | Description |
---|---|
parser | Required. Specifies the XML parser to use |
option | Required. Specifies the option to get. Possible values:
|
返回值: | 该期权的成功值。 FALSE 和失败时的错误 |
---|---|
PHP 版本: | 4.0+ |
PHP 变更日志: | PHP 7.1:添加了 XML_OPTION_SKIP_TAGSTART 和 XML_OPTION_SKIP_WHITE选项范围 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!