WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP xml_parser_get_option() function



Definition and usage

xml_parser_get_option () function gets options from an XML parser.

If successful, the function returns the option value. If it fails, FALSE and an error are returned.

Syntax

xml_parser_get_option (parser, option, value)

parameters description
parser Required. Specifies the XML parser to use.
option Required. Specifies the options to be obtained. Possible values:
  • XML_OPTION_CASE_FOLDING-Specifies whether case-folding is allowed. Allowed by default. Can be 1 (TRUE) or 0 (FALSE).
  • XML_OPTION_TARGET_ENCODING-Specifies which target encoding is used in the XML parser. By default, it is set the same as the xml_parser_create () function, and it supports the target encodings: ISO-8859-1, US-ASCII, and UTF-8.


Example

<?php
$xmlparser = xml_parser_create();

echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);

xml_parser_free($xmlparser);
?>