English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Example of PHP xml_parser_free() Function

PHP XML Function Manual

The xml_parser_free() function is used to release the XML parser.

Syntax

bool xml_parser_free ( resource $parser )

Definition and Usage

It is used to release the XML parser.

Return Value

 If the parser parameter does not point to a valid parser, the function will return FALSE, otherwise it will release the specified parser and return TRUE.

Parameter

Serial NumberParameters and Description
1

parser

Pointer to the XML parser to be released.

Online Example

Try the following example, create an XML parser and then release the XML parser:

<?php
   $local = xml_parser_create();
   xml_parser_free($local);
?>

PHP XML Function Manual