This is a small snippet of how to use an array... I have commented it so you can see what each part is doing... Obviously, this would need to be tweaked to suit your needs, but it's pretty easy to mod.
// Define the array, and count the number of items in the array
$array = array(1,2,3,4);
$count = count($array);
// Define the total, and then add all of the values in the array to come up with a total.
$total= 0;
FOREACH($array as $v){
$total += $v;
}
// Do the math, and round the answer to the nearest tenth. Echo out the answer.
$average = round(($total/$count), 1);
echo $average;
This shows you how to use a predefined array, the PHPFreakss tut shows you how to do it from a DB. If neither of these methods work for you, then you'll need to post more details on exactly what you are trying to do so we can narrow it down for you.