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);
?>
 
PREVIOUS NEXT
Tagged: #php #remove #duplicates #array
ADD COMMENT
Topic
Name
1+6 =