Function: dom_to_array()

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

Converts a XML DOM structure to an array.

Details

This function can convert any DOM structure to an array. 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 to be converted to the array.

$array by reference array

The tagrget array to be filled from the DOM structure.

Returns

void

Authors

Oleg Schildt

Package

Source code

See also