openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

Installs: 62 102

Dependents: 18

Stars: 36

Watchers: 2

Forks: 7

Open Issues: 2

Language: PHP

0.0.9 2013-03-27 03:38 UTC

README

Array2XML conversion library credit to lalit.org

Usage

//create XML
$xml = Array2XML::createXML('root_node_name', $php_array);
echo $xml->saveXML();

//create Array
$array = XML2Array::createArray($xml);
print_r($array);

Reference

More complete references can be found here http://www.lalit.org/lab/convert-xml-to-array-in-php-xml2array/ http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/