Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 400 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 400 Bytes

Create plain PHP associative array from XML

Example usage:

$xmlNode = simplexml_load_file('example.xml');
$arrayData = xmlToArray($xmlNode);
echo json_encode($arrayData);

Read the blog post for more info.

License: Public domain