Home > PHP > Function > XML Parser > xml_parse_into_struct()

xml_parse_into_struct()

xml_parse_into_struct - Parse XML data into an array structure

Syntax

int xml_parse_into_struct (resource $parser, string $data, array &$values, array &$index)

Arguments

  • parser
  • data
  • values
  • index

Description

This function parses an XML file into 2 parallel array structures, one ( index) containing pointers to the location of the appropriate values in the values array. These last two parameters must be passed by reference.

Version

PHP 4, 5

Return value

xml_parse_into_struct() returns 0 for failure and 1 for success. This is not the same as FALSE and TRUE, be careful with operators such as ===.