Skip to content
Advertisement

Tag: arrays

PHP – remove duplicate indexes from array, compared by one of it values

I have a PHP array with indexes, its values can be duplicated. I want to remove all duplicated indexes from this array: So, Index 1 and 2 with the same title “Title B” are duplicated. Only the one with the higher tstamp should be exists, all older ones with same title should be removed from array: Hope someone understand me

Advertisement