<?php $fruits_list = array('Orange',  'Apple', ' Banana', 'Cherry', ' Banana'); $result = array_unique($fruits_list); print_r($result); ?>    Output:  Array ( [0] => Orange [1] => Apple [2] => Banana [3] => Cherry ) 

Continue reading

Read more of this post