array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.xml-parser-get-option.php', 1 => 'xml_parser_get_option', ), 'up' => array ( 0 => 'ref.xml.php', 1 => 'XML Parser Funktionen', ), 'prev' => array ( 0 => 'function.xml-parser-free.php', 1 => 'xml_parser_free', ), 'next' => array ( 0 => 'function.xml-parser-set-option.php', 1 => 'xml_parser_set_option', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xml/functions/xml-parser-get-option.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
xml_parser_get_option — Get options from an XML parser
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.
Returns the option's value.
Throws a ValueError when an invalid value is passed
to option
.
Prior to PHP 8.0.0, passing an invalid value to
option
generated a E_WARNING
as well as making the function return false
.
Version | Beschreibung |
---|---|
8.3.0 | The function now returns a boolean for boolean options. |
8.0.0 |
parser erwartet nun eine
XMLParser-Instanz; vorher wurde eine gültige
xml -Ressource erwartet.
|
8.0.0 |
A ValueError is now thrown if
option is invalid.
|
7.1.24, 7.2.12, 7.3.0 |
options now supports XML_OPTION_SKIP_TAGSTART
and XML_OPTION_SKIP_WHITE .
|