How do I remove duplicates from a array if it only should check in position [1] (fruit name)
Array (
[0] => Array (
[0] => 1
[1] => Apple
)
[1] => Array (
[0] => 2
[1] => Pineapple
)
[2] => Array (
[0] => 1
[1] => Apple
)
)
[0]from each array. Duplicates will just overwrite each other. You can then usearray_valuesif you wanted to reset the keys back to zero.[1]as well. Either one would work.