i have an array that contains numbers.
i want to work out the greatest differnce between any 2 values.
ie
$breaks [2] = '2';
$breaks [5] = '5';
$breaks [7] = '7';
$breaks [9] = '9';
$breaks [15] = '15';
$breaks [20] = '20';
$breaks [22] = '22';
// greatest difference here is 6
the purpose is that a table is being drawn, and counting each cell, line breaks occur when $count equals an amount in the array.
i need to workout the widest the table is going to be for formatting and colspan uses.
is there a function i can use to do this or am i going to start from the bottom comparing each value with each other?