Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]


PHP Manual [xml_parser_free]

Protect Your Website Today

PHP Manual || XML Parser Functions

(PHP 4, PHP 5, PHP 7)

xml_parser_freeFree an XML parser


xml_parser_free ( resource $parser ) : bool

Frees the given XML parser.


In addition to calling xml_parser_free() when the parsing is finished, as of PHP 7.0.0 it is 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.


A reference to the XML parser to free.

Return Values

This function returns FALSE if parser does not refer to a valid parser, or else it frees the parser and returns TRUE.

PHP Manual || XML Parser Functions