(PHP 4, PHP 5, PHP 7)
xml_parser_get_option — Get options from an XML parser
xml_parser_get_option ( XMLParser $parser , int $option ) : string|int
Gets an option value from an XML parser.
parser
option
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. 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.
Version | Description |
---|---|
8.0.0 | parser expects an XMLParser instance now; previously, a resource was expected. |
7.1.24, 7.2.12, 7.3.0 | options now supports XML_OPTION_SKIP_TAGSTART and XML_OPTION_SKIP_WHITE . |
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.xml-parser-get-option.php