distinct() public method
Returns a list of distinct values for the given column across a collection.
public array distinct ( $collectionName, $fieldName, $condition = [], $options = [] )$collectionName string
Collection name. $fieldName string
Field name to use. $condition array
Query parameters. $options array
List of options in format: optionName => optionValue. return array
Array of distinct values, or "false" on failure.