Commit ca422ecb authored by gdd's avatar gdd
Browse files

Fixed up some comments

parent 3de10c2a
......@@ -200,13 +200,11 @@ function config_xml_to_array($data) {
* @todo This needs to work for objects as well and currently doesn't.
function config_encode($data) {
// creating object of SimpleXMLElement
// Convert the supplied array into a SimpleXMLElement.
$xml_object = new SimpleXMLElement("<?xml version=\"1.0\"?><config></config>");
// function call to convert array to xml
config_array_to_xml($data, $xml_object);
// Pretty print the result
// Pretty print the result.
$dom = new DOMDocument('1.0');
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment