Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 405 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 405 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