Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check duplicate data in array php

$counts = array_count_values($array);
            $duplicate_title  = array_filter($array, function ($value) use ($counts) {
                return $counts[$value] > 1;
            });
 
PREVIOUS NEXT
Tagged: #check #duplicate #data #array #php
ADD COMMENT
Topic
Name
7+6 =