Php question guys.

I want to write a function so I can run in php:

$result = mysql_query($query);
	while ($line = mysql_fetch_assoc($result)){
	user_call_func_array('displayresults', $line);
	}

where displayresults takes the results from the query and formats them.
The problem is that the fields returned in the array change depending
onthe query (I have multiple tables with different fields). So I can't
really reduce the array $line into a set of variables. But when I try to
pass the array $line, the function displayresults only gets $line as a
string. Same with user_call_func.

Can I pass an array to a function?

Thanks,

Ben