Quick way to convert XML to Array in PHP

Last updated on December 28th, 2013 at 07:11 am

This is the dirty and fast way to convert XML file to Array.

$array = json_decode(json_encode((array)simplexml_load_string($xml)),1);

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading