← All docs

xml_parser_set_option()

Sets an XML_OPTION_* parser option.

xml_parser_set_option()

function xml_parser_set_option(mixed $parser, int $option, mixed $value): bool

Sets an XML_OPTION_* parser option.

Parameters:

  • $parser (mixed)
  • $option (int)
  • $value (mixed)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xml_parser_set_option is implemented in the compiler, see the internals page.