if you want to print out an array like this:
$myarray = array("something", "more data");
echo $array;
- php behaves so nice to inform you that this is impossible by saying "Array".
Look inside that array using f. ex. var_dump($myarray) in order to check out if and where it contains the information you need.
that means, the data is in $myarray, but it's not properly printed out by your script because you can't print an array directly: either each of its elements or a "flattened" version of the array, e.g. using echo implode(", ", $myarray);