src/EasyDB.php
public function column(string $statement, array $params = [], int $offset = 0)
    {
        $stmt = $this->prepare($statement);
        if (!$this->is1DArray($params)) {
            throw new Issues\MustBeOneDimensionalArray(
                'Only one-dimensional arrays are allowed.'
            );
        }
        $stmt->execute($params);
        return $stmt->fetchAll(
            \PDO::FETCH_COLUMN,
            $offset
        );
    }
public function column(string $statement, array $params = [], int $offset = 0)
    {
        $stmt = $this->prepare($statement);
        if (!$this->is1DArray($params)) {
            throw new Issues\MustBeOneDimensionalArray(
                'Only one-dimensional arrays are allowed.'
            );
        }
        $stmt->execute($params);
        return $stmt->fetchAll(
            \PDO::FETCH_COLUMN,
            $offset
        );
    }
public function column ( string $ statement , array $ params = [ ] , int $ offset = 0 ) { $ stmt = $ this -> prepare ( $ statement ) ; if ( ! $ this -> is1DArray ( $ params ) ) { throw new Issues \ MustBeOneDimensionalArray ( 'Only one-dimensional arrays are allowed.' ) ; } $ stmt -> execute ( $ params ) ; return $ stmt -> fetchAll ( \ PDO :: FETCH_COLUMN , $ offset ) ; }
Fetch a column

@param  string $statement SQL query without user data
@param  array  $params    Parameters
@param  int    $offset    How many columns from the left are we grabbing
from each row?
@return mixed
Fetch a column