xml_parser_get_option
Function • Return type changed in PHP 8.3
Get options from an XML parser.
xml_parser_get_option Function synopsis
xml_parser_get_option(XMLParser $parser, int $option): string|int|bool
Parameters
$parser
TypeXMLParser
$option
Typeint
Return value
Typestring|int|bool
Returns the option's value.
Changes to the xml_parser_get_option Function
PHP 8.3
- Return type changed:
string|inttostring|int|bool
- xml_parser_get_option(XMLParser $parser, int $option): string|int
+ xml_parser_get_option(XMLParser $parser, int $option): string|int|bool PHP 8.0
- Return type added:
string|int - Parameter type added for parameter #1 (
$parser):XMLParser - Parameter type added for parameter #2 (
$option):int
- xml_parser_get_option($parser, $option)
+ xml_parser_get_option(XMLParser $parser, int $option): string|int xml_parser_get_option Function Availability
xml_parser_get_option Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |