Remove duplicate values from an array:
<?php
$a=array("a"=>"red","b"=>"green","c"=>"red");
print_r(array_unique($a));
?>
by გიორგი ბაკაშვილი
4 years ago
PHP
Array
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences