Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove duplicates from array

<?php
$fruits_list = array('Orange',  'Apple', ' Banana', 'Cherry', ' Banana');
$result = array_unique($fruits_list);
print_r($result);
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #duplicates #array
ADD COMMENT
Topic
Name
7+1 =