print_r will iterate through an array, outputting the contents.
var_dump() does similar, and var_export() is also helpful.
If you were to post here that array you posted initially, but instead showed us the result of:
$array = (this is your array of results)
echo var_export($array, 1);
and then tell us what you want to extract from that array, someone can then show you how best to iterate (loop) through your array and output the results you wanted.
As it is we have to guess what you want and we have to type out that array ourselves in order to reproduce it. Hence the var_export request