If you want to get the 3 values you are looking for, load all the titles into an array, lets call it $titles. Then do something like:
$s = 0;
foreach($titles as $item) {
$length[$s] = strlen($item);
$s++;
}
sort($length, SORT_NUMERIC);
so now we have $lengths that contains the length of the titles. The minimum value is going to be $length[0] and the maximum is the last element. To get the average:
$total = 0;
foreach($length as $item) {
$total = $total + $item;
}
$average = $total / count($length);
I have not tested this code, hopefully it works ok 🙂
-Chris