simplexml_load系の返り値を一気に一発で配列にする方法
$sx = simplexml_load_string($xml);
json_decode(json_encode($sx), true);
解説はこちら
http://fdays.blogspot.jp/2011/03/php-simplexml.html
もし、@attributeとかの属性も細かく取りたいなら
$sx = simplexml_load_string($xml);
json_decode(json_encode($sx), true);
解説はこちら
http://fdays.blogspot.jp/2011/03/php-simplexml.html
もし、@attributeとかの属性も細かく取りたいなら