isUnique

Definition

1
Arr::isUnique(array $array, bool $strict = false): bool
Copied!

Description

Check if array values are unique

Examples

1
// Without strict flag 1 is equal to '1'
2
Arr::isUnique([1, '1', true]) -> false
3
4
Arr::isUnique([1, '1', true], true) -> true
Copied!
Last modified 2yr ago
Copy link