Hi guys,
How can you remove both copies of duplicates in an array using array_unique?
For example...
$input = array("green", "green", "red","red","blue");
$result = array_unique($input);
result:
blue
So if a work is in more then once, both are removed...
$input = array("Apple", "Tree", "Black","Red","Red","Apple","Green");
$result = array_unique($input);
result:
Tree, Green
Thanks so much for any help! 😃