Referring to this question & this, i have a little different problem here.
I have an array like this:
Array ( [0] => Array ( [name] => "Size" [value] => "Large" [id] => "1201" ) [1] => Array ( [name] => "Size" [value] => "Small" [id] => "1203" ) [2] => Array ( [name] => "Size" [value] => "Medium" [id] => "1204" ) [3] => Array ( [name] => "Size" [value] => "Large" [id] => "1205" ) [4] => Array ( [name] => "Size" [value] => "Large" [id] => "1206" ) [5] => Array ( [name] => "Size" [value] => "Large" [id] => "1207" ) ) Above array have repetition of Large Three times, i want to identify unique on key based value. and remove that index (0,1,2,3,4,5) from that array.
Mentioned questions contains problems like this, but not the exact problem i am facing.
I am trying like this:
array_map("unserialize", array_unique(array_map("serialize", $input))); but not working.