Please tell me how to convert an xml file into array format in php. I have few nested tags in my xml file which must work in array\[code\] <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>Tove</to> <from> <name>Jani</name> <email>[email protected]</email> <phones> <phone> <mobile>9000199193</mobile> <land> 9999999 </land> </phone> <phone> <mobile>9000199194</mobile> <land> 5555555 </land> </phone> <phone> <mobile>9000199195</mobile> <land> 8888888 </land> </phone> </phones> </from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>\[/code\]