xml_parser_get_option

mixed xml_parser_get_option(resource parserID, int option) 
parserID Reference to a valid parser
option XML parser option

Gets a parser option setting.

Returns:

Option as mixed

Description:

Returns option if the option was set; this function returns FALSE if the option was not set or the parser was invalid. Possible options include XML_OPTION_CASE_FOLDING, XML_OPTION_SKIP_WHITE, XML_OPTION_SKIP_TAGSTART, and XML_OPTION_TARGET_ENCODING. See xml_parser_set_option() for details on options.

Version:

PHP 3 >= 3.0.6, PHP 4 >= 4.0b1

Example:

Get an XML parser option
 $xmlparser = xml_parser_create(); print "XML character Encoding: " . xml_parser_get_option($xmlparser, XML_OPTION_TARGET_ENCODING); xml_parser_free($xmlparser); ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.