Um, this should not be a problem at all!
function test() {
$temp = array();
$temp[] = "test";
$temp[] = "more test";
return $temp;
}
$myArray = test();
print "type: ".gettype($myArray)."<br>\n";
foreach ($myArray AS $key => $val)
print "$key - $val<br>\n";