PHP xml_parser_free() 函数

定义和用法
xml_parser_free() 函数释放 XML 解析器。
如果成功,则返回 true。否则返回 false。
语法
xml_parser_free(parser)
参数 | 描述 |
---|---|
parser | 必需。规定要释放的 XML 解析器。 |
提示和注释
提示:要创建 XML 解析器,请使用 xml_parser_create() 函数。
例子
<?php
$xmlparser = xml_parser_create();
xml_parser_free($xmlparser);
?>
$xmlparser = xml_parser_create();
xml_parser_free($xmlparser);
?>
