xml_parser_free
(PHP 4, PHP 5, PHP 7)
xml_parser_free — Free an XML parser
Description
xml_parser_free ( XMLParser $parser ) : bool
 Frees the given XML parser. 
Caution 
  In addition to calling xml_parser_free() when the parsing is finished, prior to PHP 8.0.0, it was necessary to also explicitly unset the reference to parser to avoid memory leaks, if the parser resource is referenced from an object, and this object references that parser resource. 
Parameters
-  parser
- A reference to the XML parser to free.
Return Values
 Returns true on success or false on failure. 
Changelog
| Version | Description | 
|---|---|
| 8.0.0 | parserexpects an XMLParser instance now; previously, a resource was expected. | 
    © 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
    https://www.php.net/manual/en/function.xml-parser-free.php