PHP xml_parser_free() Function

In this chapter you will learn:

  1. Description for PHP xml_parser_free() Function
  2. Syntax for PHP xml_parser_free() Function
  3. Parameter for PHP xml_parser_free() Function
  4. Return for PHP xml_parser_free() Function
  5. Example - frees an an XML parser

Description

The xml_parser_free() function frees an an XML parser.

Syntax

PHP xml_parser_free() Function has following syntax.

xml_parser_free(parser)

Parameter

ParameterIs RequiredDescription
parserRequired.XML parser to free

Return

This function returns TRUE on success, or FALSE on failure.

Example

frees an an XML parser


<?php//from  j  a v a 2  s . com
$xmlparser = xml_parser_create();

xml_parser_free($xmlparser);
?>

Next chapter...

What you will learn in the next chapter:

  1. Description for PHP xml_parser_get_option() Function
  2. Syntax for PHP xml_parser_get_option() Function
  3. Parameter for PHP xml_parser_get_option() Function
  4. Return for PHP xml_parser_get_option() Function
  5. Example - gets options from an XML parser