unique()
The unique() method removes duplicate values
Example.php
Syntax
Parameter
Used to modify the sorting behavior using these values:
Sorting type flags:
SORT_REGULAR
- compare items normally (don't change types)SORT_NUMERIC
- compare items numericallySORT_STRING
- compare items as stringsSORT_LOCALE_STRING
- compare items as strings, based on the current locale.
Return value
A filtered array.
Prefixing
References
Last updated