public function fetch($type = parent::FETCH_TYPE_NUM)
    {
        $callback = $this->_callback;
        $row = $this->_statement->fetch($type);

        return $row === false ? $row : $callback($row);
    }
public function fetch($type = parent::FETCH_TYPE_NUM)
    {
        $callback = $this->_callback;
        $row = $this->_statement->fetch($type);

        return $row === false ? $row : $callback($row);
    }
public function fetch ( $ type = parent :: FETCH_TYPE_NUM ) { $ callback = $ this -> _callback ; $ row = $ this -> _statement -> fetch ( $ type ) ; return $ row === false ? $ row : $ callback ( $ row ) ; }
Fetch a row from the statement.

The result will be processed by the callback when it is not `false`.

@param string $type Either 'num' or 'assoc' to indicate the result format you would like.
@return array|false
Fetch a row from the statement .