Published 23rd September 2012
This one is quick and simple:
$array = json_decode(json_encode((array)simplexml_load_string($xml)),1);
Gilbert Pellegrom is a Software Engineer living and working in the North of Scotland. You should follow me on Twitter or pop your email in the form below to get updates in your inbox.