← All docs

xml_set_element_handler()

Sets the start and end element handlers.

xml_set_element_handler()

function xml_set_element_handler(mixed $parser, mixed $start_handler, mixed $end_handler): bool

Sets the start and end element handlers.

Parameters:

  • $parser (mixed)
  • $start_handler (mixed)
  • $end_handler (mixed)

Returns: bool

Availability

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

Internals

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