src/CouchDB/DesignDocument/Result.php
public function getFirstRow()
    {
        $rows = $this->data['rows'];
        if (empty($rows)) {
            return false;
        }

        $row = array_slice($rows, 0, 1);

        return current($row);
    }
public function getFirstRow()
    {
        $rows = $this->data['rows'];
        if (empty($rows)) {
            return false;
        }

        $row = array_slice($rows, 0, 1);

        return current($row);
    }
public function getFirstRow ( ) { $ rows = $ this -> data [ 'rows' ] ; if ( empty ( $ rows ) ) { return false ; } $ row = array_slice ( $ rows , 0 , 1 ) ; return current ( $ row ) ; }
Return the first row.

@return bool|array
Return the first row .