dumpTags

Description

Formats data retrieved in other functions into xml format.

Syntax

void dumpTags (array $data, int $i[, mixed $tag])



Parameter $data

Expected type: Array
Description: An array of data to output in XML format



Parameter $i

Expected type: Integer
Description: How many levels the tags should be indented



Parameter $tag

Expected type: Mixed
Description: A tag that should be used in place of the data keys

Allowed types for $tag
Allowed values Description
Null Default value. Indicates that the data keys should be used for the tags.
String A specific tag to use instead of the data keys


Notes

  • The data parameter is the array to output as xml data.
  • Indentation is the amount of indentation to use.
  • If a tag is specified, it will be used instead of the keys of data.
  • This function is recursively called to handle sub arrays of data.
Advertisement: