a::xml
Converts an array to a XML string
a::xml($array, $tag = 'root', $head = true, $charset = 'utf-8', $tab = ' ', $level = 0)
Parameters
- $array (array)
- The source array
- $tag (string)
- The name of the root element
- $head (boolean)
- Include the xml declaration head or not
- $charset (string)
- The charset, which should be used for the header
- $level (int)
- The indendation level
Return values
- string
- The XML string