> If the contact_id is the primary key, you could also use that as array
> index, which would automatically filter duplicates.

Thanks for this, it's so obvious I didn't see it.  I was adding items
to the array with $array[] = $contact when I could have just as easily
used $array[$contact['id']] = $contact;


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to