src/Db.php
public function fetchRows($sql, array $parameters = [], $indexedKeys = false)
    {
        $statement = $this->executeQuery($sql, $parameters);

        return $statement->fetchAll($indexedKeys ? PDO::FETCH_NUM : PDO::FETCH_ASSOC);
    }
public function fetchRows($sql, array $parameters = [], $indexedKeys = false)
    {
        $statement = $this->executeQuery($sql, $parameters);

        return $statement->fetchAll($indexedKeys ? PDO::FETCH_NUM : PDO::FETCH_ASSOC);
    }
public function fetchRows ( $ sql , array $ parameters = [ ] , $ indexedKeys = false ) { $ statement = $ this -> executeQuery ( $ sql , $ parameters ) ; return $ statement -> fetchAll ( $ indexedKeys ? PDO :: FETCH_NUM : PDO :: FETCH_ASSOC ) ; }
Execute an SQL statement and return all rows as an array.

@param string $sql
@param array  $parameters
@param bool   $indexedKeys
@return array
Execute an SQL statement and return all rows as an array .