core/classes/PDO.class.php
public function select($table, $select, $where, $conjunction = 'AND'){

        $keys = array_keys($where);
        $pairs = Array();
        foreach($keys as $key){
            $pairs[] = "{$key}=:{$key}";
        }//foreach
        $pairs = implode(" {$conjunction} ",$pairs);

        if(is_array($select)){
            $select = implode(',',$select);
        }//if

        return $this->query($this->set("SELECT {$select} FROM {$table} WHERE {$pairs}",$where));

    }
public function select($table, $select, $where, $conjunction = 'AND'){

        $keys = array_keys($where);
        $pairs = Array();
        foreach($keys as $key){
            $pairs[] = "{$key}=:{$key}";
        }//foreach
        $pairs = implode(" {$conjunction} ",$pairs);

        if(is_array($select)){
            $select = implode(',',$select);
        }//if

        return $this->query($this->set("SELECT {$select} FROM {$table} WHERE {$pairs}",$where));

    }
public function select ( $ table , $ select , $ where , $ conjunction = 'AND' ) { $ keys = array_keys ( $ where ) ; $ pairs = Array ( ) ; foreach ( $ keys as $ key ) { $ pairs [ ] = "{$key}=:{$key}" ; } //foreach $ pairs = implode ( " {$conjunction} " , $ pairs ) ; if ( is_array ( $ select ) ) { $ select = implode ( ',' , $ select ) ; } //if return $ this -> query ( $ this -> set ( "SELECT {$select} FROM {$table} WHERE {$pairs}" , $ where ) ) ; }
Perform a SELECT statement .

@param string $table The name of the table to select from.
@param string|array $select The fields to select from the table, can be a string of field or an array of
fields.
@param array $where The conditions specifying what rows should be selected from the table, must be an associative array.
@param string $conjunction The conjunction used to form the where condition of the select statement. Default
is `AND`.

@return mixed
@throws \Disco\exceptions\DBQuery
Perform a SELECT statement .