Function: array_to_dom()

function array_to_dom(\DOMNode &$node, array &$array): void;

Converts an array to XML DOM structure.

Details

This function can convert an array of any dimensions to a DOM structure. It might be used for loading and saving settings to a config file.

Parameters

Name Pass type Value type Default value Description
$node by reference \DOMNode

The parent node of the DOM structure.

$array by reference array

The array to be converted to the DOM structure.

Returns

void

Authors

Oleg Schildt

Package

Source code

See also