Hi there,
I have an array, which stores in the first dimension a counter for the number of sets, and in the second the value:
I found somewhere how to find min and max values in such an array:
But, logically, the MIN value will be 0 (for positive [any_float_possi ble-values], as it will take the minimum value of the counter; which is 0.
I can't see what I should do to get the min/max only for the second dimension.
Thanks for any hints!
I have an array, which stores in the first dimension a counter for the number of sets, and in the second the value:
Code:
$value[0...240][any_float_possible]
Code:
// find max and min value
foreach( $value as $__vals )
{
$__max = max( max($__vals), $__max);
$__min = min( min($__vals), $__min);
}
I can't see what I should do to get the min/max only for the second dimension.
Thanks for any hints!
Comment