Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP xml_parser_get_option() Function

PHP xml_parser_get_option() Function


PHP XML Reference Manual Complete PHP XML Reference Manual


Definition and Usage

The xml_parser_get_option() function gets an option from an XML parser.

On success, this function returns the option value. On failure, it returns FALSE and an error.

Syntax

xml_parser_get_option(parser,option,value)

Parameters Description
parser Required. Specifies the XML parser to use.
option Required. Specifies the option to get. Possible values:
  • XML_OPTION_CASE_FOLDING - Specifies whether case-folding is allowed. Default is allowed. Can be 1 (TRUE) or 0 (FALSE).
  • XML_OPTION_TARGET_ENCODING - Specifies which target encoding to use in the XML parser. By default, it is the same as the setting of the xml_parser_create() function. The supported target encodings are: ISO-8859-1, US-ASCII and UTF-8.
  • |

    Example


    PHP XML Reference Manual Complete PHP XML Reference Manual