I need to remove duplicates in my array, but they aren't EXACTLY duplicates (so i can't use array_unique). Actually i need to ignore one field in the 'duplicate check'. In the example below, i want the 'RecipientEmail' to be ignored in the check, so the third element should me removed :
Array
(
[0] => Array
(
[RecipientID] => 1
[RecipientScreenname] => Lau T
[RecipientFirstname] => TK
[RecipientEmail] => lau@xx.co.uk
)
[1] => Array
(
[RecipientID] => 3
[RecipientScreenname] => Tom L
[RecipientFirstname] => Thomas
[RecipientEmail] => info@xx.com
)
[2] => Array
(
[RecipientID] => 1
[RecipientScreenname] => Lau T
[RecipientFirstname] => TK
[RecipientEmail] => other@xx.co.uk
)
)
Is there any way to do it using any native PHP function ?