I have an array structure like this (output by print_r(array)):
SimpleXMLElement Object (
[items] => Array (
[0] => SimpleXMLElement Object (
[walson] => 986
[john] => 01
[merry] => 234 )
[1] => SimpleXMLElement Object (
[nelson] => 987
[richard] => 01
[joan] => 345 )))
[2] => SimpleXMLElement Object (
[danny] => 989
[soffie] => 02
[roland] => 345 )))
How can I get output like this in PHP:
0, walson 986, john 01, merry 234 1, nelson 987, richard 01, joan 345 2, danny 989, soffie 02, roland 345

You can use php function like
this will give you array result like