xml parser free in PHP

In this article I will explain how the xml_parser_free() function can be used in PHP.
  • 1925

xml_parser_free() function in PHP

  • The xml_parser_free() function is used to free an an XML parser.
  • The xml_parser_free() function returns TRUE on success.
  • The xml_parser_free() function returns FALSE on failure.

Syntax

xml_parser_free(parser)

Parameter

  • parser parser is required parameter. it is specify for free to XML parser.
Example

The following example show to how the xml_parser_free() function can be used in PHP.

<html>

<body>

<h3 style="color: red;">xml_parser_free() function example in PHP</h3>

    <?php

    $xmlparser = xml_parser_create();

    echo"xml_parser is created<br/>";

    xml_parser_free($xmlparser);

    echo("Now xml_parser free with xml_parser_free function....!");

    ?>

</body>

</html>

 

Output

xml-parser-free-php.gif
You may also want to read these related articles here
 
Ask Your Question 
 
Got a programming related question? You may want to post your question here
 
© 2020 DotNetHeaven. All rights reserved.