RedBeanPHP\Adapter::getCol PHP Method

getCol() public method

This method returns a single column (one array) resultset. The values array can be used to bind values to the place holders in the SQL query.
public getCol ( string $sql, array $bindings = [] ) : array
$sql string string containing SQL code for database
$bindings array array of values to bind to parameters in query string
return array
    public function getCol($sql, $bindings = array());