xml_parser_get_option

(PHP 4, PHP 5, PHP 7)

xml_parser_get_optionGet options from an XML parser

Descrierea

xml_parser_get_option ( resource $parser , int $option ) : mixed

Gets an option value from an XML parser.

Parametri

parser
A reference to the XML parser to get an option from.
option
Which option to fetch. XML_OPTION_CASE_FOLDING, XML_OPTION_SKIP_TAGSTART, XML_OPTION_SKIP_WHITE and XML_OPTION_TARGET_ENCODING are available. See xml_parser_set_option() for their description.

Valorile întoarse

This function returns FALSE if parser does not refer to a valid parser or if option isn't valid (generates also a E_WARNING). Else the option's value is returned.

Istoricul schimbărilor

Versiune Descriere
7.1.24, 7.2.12, 7.3.0 options now supports XML_OPTION_SKIP_TAGSTART and XML_OPTION_SKIP_WHITE.