Converts an array to a XML string
static public xml ( array $array, string $tag = 'root', boolean $head = true, string $charset = 'utf-8', $tab = ' ', integer $level ) : string | ||
$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 | integer | The indendation level |
Résultat | string | The XML string |