method getFieldValues documentation in bbn\Db
Return the unique values of a column of a table as a numeric indexed array.
Example
X::dump($db->getFieldValues("table_users", "surname", [['id', '>', '2']]));
// (array) ["Smiths", "White"]
function($table, string $field = NULL, array $where = [], array $order = [])
{
return $this->getColumnValues($table, $field, $where, $order);
}
Return the unique values of a column of a table as a numeric indexed array. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions