How can I delete duplicates in array?
For example if I had the following array:
$array = array(\'1\',\'1\',\'2\',\'3\');
I want it
Remove duplicate values from an array.
array_unique($array) $array = array(4, "4", "3", 4, 3, "3"); $result = array_unique($array); print_r($result); /* Array ( [0] => 4 [2] => 3 ) */