I have a multi dimensional array and I need to cross check it for duplicate results and if they are duplicated remove the array with the duplicate results. I need to check 3 keys for duplication; number, departure and arrival. Here is an example array where the 3rd array is a duplicate and would need to be deleted:
[Cars] => Array
(
[0] => Array
(
[cartype] => car1
[number] => 123
[craft] => 456
[departure] => GHY
[departtime] => 20:25
[arrival] => PUI
[arrivetime] => 22:50
)
[1] => Array
(
[cartype] => car2
[number] => 567
[craft] => 890
[departure] => LHY
[departtime] => 16:25
[arrival] => PGY
[arrivetime] => 23:50
)
[2] => Array
(
[cartype] => car2
[number] => 567
[craft] => 890
[departure] => LHY
[departtime] => 16:25
[arrival] => PGY
[arrivetime] => 23:50
)
)
I would really appreciate some help.
Thanks,