well thx for ur reply.....i kno its may not be related to cakephp but im using the cakephp framework and showing the result using controller and model...thx.
On Feb 23, 8:05 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > Please explain how this problem relates to CakePHP, not simply to PHP. > > foreach($yourArray as $yourValue) > $totalTime += $yourValue; > > Eric > > On 2/22/07, Junal Rahman <[EMAIL PROTECTED]> wrote: > > > > > hi everybody ! im net at cakePhp. im trying to show data from different > > tables. i have done it. problem is i want to sum the total time of the > > array. let say i have data like this > > ....$data['Style']['Sp'][0]['Test'][0]['time']. i have been using a foreach > > loop to show the data. here Style Sp n Test are models. now next loop will > > be like $data['Style']['Sp'][0]['Test'][1]['time'] which will show the next > > time belongs to the id. now my question is how can i get the total time from > > it. i mean how can i add the time?......plz give me a suggestion. thank > > you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---