Re: [PHP] Summing array indexes.

2008-09-04 Thread Jochem Maas
7;, ''); } -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:17 PM To: PHP General; Tom Shaw Subject: Re: [PHP] Summing array indexes. Not a direct answer to your question (don't worry, I hate it when people do

RE: [PHP] Summing array indexes.

2008-09-04 Thread Tom Shaw
ic Gorr [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:17 PM To: PHP General; Tom Shaw Subject: Re: [PHP] Summing array indexes. Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of th

Re: [PHP] Summing array indexes.

2008-09-04 Thread Diogo Neves
On Thu, Sep 4, 2008 at 11:02 PM, Tom Shaw <[EMAIL PROTECTED]> wrote: > Is there an easy way to loop thru the array below and add the incremented > total price indexes so the order_total_price index contains the correct > sum. > Any help would be greatly appreciated. > > > > > > array(5) { > > [0]

Re: [PHP] Summing array indexes.

2008-09-04 Thread Micah Gersten
This should help: http://us.php.net/array_walk Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Tom Shaw wrote: > Is there an easy way to loop thru the array below and add the incremented > total price indexes so the order_total_price index contains the correc

Re: [PHP] Summing array indexes.

2008-09-04 Thread Eric Gorr
Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of the products ordered as their own array. [0] => array(15) { ["order_date"] => string(8) "09-01-08" ["order_products"] => array(2) { [0] => string(5

[PHP] Summing array indexes.

2008-09-04 Thread Tom Shaw
Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] => array(15) { ["order_date"] => string(8) "09-01-08" ["order_product_pric