PHP array_unique() Function
The array_unique() function removes duplicate values from an array, keeping only the first occurrence of each value.
Syntax
array_unique(array $array, int $flags = SORT_STRING): array
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?