Read xml file and load its content into the array
===

I need to read xml file and load its content into the array. What is the simplest way to do this?

$xml = json_decode(json_encode((array) simplexml_load_file("./test.xml")), 1);
print_r $xml;