Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Jim Lucas
-- From: tedd [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:12 PM To: php-general@lists.php.net Subject: Re: [PHP] Removeing duplicates inside for/foreach loop. At 11:50 AM -0500 7/15/08, Niccolo Machiavelli wrote: $array = array( -snip- My question is I want to remove duplicate

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Eric Butera
On Tue, Jul 15, 2008 at 12:50 PM, Niccolo Machiavelli <[EMAIL PROTECTED]> wrote: > $array = array( > > 1 => array("order_number" => "10DA0DDEDAF97DB", "order_payment_first_name" > => "Mike", "order_payment_last_name" => "Smith"), > > 2 => array("order_number" => "10DA0DDEDAF97DB", "order_paymen

RE: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Niccolo Machiavelli
} } } -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:12 PM To: php-general@lists.php.net Subject: Re: [PHP] Removeing duplicates inside for/foreach loop. At 11:50 AM -0500 7

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread tedd
At 11:50 AM -0500 7/15/08, Niccolo Machiavelli wrote: $array = array( -snip- My question is I want to remove duplicate order numbers in other words ditch *one* of the Mike Smith rows there's a duplicate order number there. And I need to do it in either a for/foreach loop. Somehow there's got

[Fwd: Re: [PHP] Removeing duplicates inside for/foreach loop.]

2008-07-15 Thread Stephen
Niccolo Machiavelli wrote: $array = array( 1 => array("order_number" => "10DA0DDEDAF97DB", "order_payment_first_name" => "Mike", "order_payment_last_name" => "Smith"), 2 => array("order_number" => "10DA0DDEDAF97DB", "order_payment_first_name" => "Mike", "order_payment_last_name" => "Sm