Skip to content
Advertisement

remove duplicate value from multi dimensional array in php

I have csv file, i am reading data from it, i have join all which are randomly matching their rows like brands, customer and soon..,

Here i want to remove all duplicate from multi dimensional array which already in array

Here you can see how all duplicate values are appending to array: image

Here is my php code

JavaScript

Thanks and welcome for all suggestions

Advertisement

Answer

You need to modify where you are looking in the in_array. You want to do this for both I’m sure, as well as check that it is set first:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement