PHP OOP - Does this database reading class make sense?
Why don't you split the "constructor" part and the "get the values" part?

Code :

class Database {

    protected $dbh;                 // Database handle connection

    public function __construct( $dbh) {
        $this-&gt;dbh          = $dbh;
    }

    public function getResults($columns,$table)
    {
        $resultSet = array();

        $read_database = $this-&gt;dbh-&gt;query('SELECT ' . implode(',' , $columns) . ' FROM ' . $table);
        while ($row = $read_database-&gt;fetch()) {            
            foreach($columns as $column) {
                $resultSet[$column] = $row[$column];
            }
        }
        return $resultSet;
    }
}


Usage :

$db = new Database($dbh);
$db-&gt;getResults($columns, $table);