[PHP] Removing duplicates in multi-dimensional array

2002-11-14 Thread René Fournier
I'm finding this one hard to approach... I have a two-dimensional array, containing customer contact information. Looks like: $myarray[0][0] = Microsoft; $myarray[0][1] = Bill; $myarray[0][2] = 123-1234; $myarray[1][0] = Apple; $myarray[1][1] = Steve; $myarray[1][2] = 456-1234;

Re: [PHP] Removing duplicates in multi-dimensional array

2002-11-14 Thread Jonathan Sharp
When you build your 2d array you could make a seperate 1d array that's indexed by the fax number and if it's set, not set it in your array... -js René Fournier wrote: I'm finding this one hard to approach... I have a two-dimensional array, containing customer contact information. Looks

Re: [PHP] Removing duplicates in multi-dimensional array

2002-11-14 Thread rija
duplicates in multi-dimensional array I'm finding this one hard to approach... I have a two-dimensional array, containing customer contact information. Looks like: $myarray[0][0] = Microsoft; $myarray[0][1] = Bill; $myarray[0][2] = 123-1234; $myarray[1][0] = Apple; $myarray[1][1] = Steve; $myarray[1