Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel remove duplicates from array

$array = array(1, 2, 2, 3);
$array = array_unique($array); // Array is now (1, 2, 3)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #remove #duplicates #array
ADD COMMENT
Topic
Name
4+9 =