Get options from an XML parser with xml_parser_get_option() function in PHP

Description

The following code shows how to get options from an XML parser with xml_parser_get_option() function.

Example


/*ww w . j a v  a2s. c  o  m*/
<?php
    $xmlparser = xml_parser_create();
    
    echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);
    
    xml_parser_free($xmlparser);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    XML »




DOM
SimpleXML
SimpleXMLElement
XML Parser