← All docs

xml_parse_into_struct()

Parses a whole XML document into an array of tag structures and an index by tag name.

xml_parse_into_struct()

function xml_parse_into_struct(mixed $parser, string $data, mixed $values, mixed $index = null): int

Parses a whole XML document into an array of tag structures and an index by tag name.

Parameters:

  • $parser (mixed)
  • $data (string)
  • $values (mixed), passed by reference
  • $index (mixed), passed by reference, default null, optional

Returns: int

Availability

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

Internals

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