Return a new array that is unique (no two of the same elements)
This is the equivalent to PHP's array_unique() function.
Usage
// basic usage
$items = $wireArray->unique();
// usage with all arguments
$items = $wireArray->unique(int $sortFlags = 2);
Arguments
Name | Type(s) | Description |
---|---|---|
sortFlags (optional) | int | Sort flags per PHP's |
Return value
WireArray methods and properties
API reference based on ProcessWire core version 3.0.236