I know this isnt really a CakePHP problem but I need help in my logic
mathematically and since most of you reading this are Maths geniuses
heres the question.
I have a array and want to make each set have the highest value in the
set. (sets are seperated by 0's)
Array
(
[0] => 0
[1] => 57.81
[2] => 73.906
[3] => 97.26
[4] => 0
[5] => 32.79
[6] => 77.81
[7] => 28.912
[8] => 0
[9] => 0
[10] => 0
[11] => 0
[12] => 0
[13] => 0
[14] => 27.12
)
becomes
Array
(
[0] => 0
[1] => 97.26
[2] => 97.26
[3] => 97.26
[4] => 0
[5] => 77.81
[6] => 77.81
[7] => 77.81
[8] => 0
[9] => 0
[10] => 0
[11] => 0
[12] => 0
[13] => 0
[14] => 27.12
)
any help will be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---