I have the following array:
array(3) {
[0]=>
array(2) {
["label"]=> string(10) "Chardonnay"
["value"]=> int(245)
}
[1]=>
array(2) {
["label"]=> string(10) "Chardonnay"
["value"]=> int(33)
}
[2]=>
array(2) {
["label"]=> string(10) "Chardonnay"
["value"]=>int(175)
}
[3]=>
array(2) {
["label"]=> string(10) "Stein"
["value"]=>int(195)
}
}
How would I go about "filtering" this array so that it looks like this:
array(2) {
[0]=>
array(2) {
["label"]=> string(5) "Chardonnay"
["value"]=> int(245)
}
[1]=>
array(2) {
["label"]=> string(10) "Stein"
["value"]=>int(195)
}
}
So in essence, I want to remove array elements by value where the value is not unique.
I don't even know where to start. Please assist?