I have duplicated record from in my array as follow
Array ( [0] =>
Array (
[driverId] => 112
[amount] => 15
[firstname] => Katty
)
[1]=>
Array (
[driverId] => 112
[amount] => 15
[firstname] => Katty
)
[2]=>
Array (
[driverId] => 118
[amount] => 15
[firstname] => Starkj
)
)
I want to remove with driverId so that my array will not have duplicated result. I tried with array_unique but it is unsuccessful. How can i achieve this ?