src/WrapperPDO.php
public function getFirstResult($field = null)
    {
        if (empty($this->results)) {
            $this->results = isset($field) ? $this->stmt->fetch()[$field] : $this->stmt->fetch();
        }

        return $this->results;
    }
public function getFirstResult($field = null)
    {
        if (empty($this->results)) {
            $this->results = isset($field) ? $this->stmt->fetch()[$field] : $this->stmt->fetch();
        }

        return $this->results;
    }
public function getFirstResult ( $ field = null ) { if ( empty ( $ this -> results ) ) { $ this -> results = isset ( $ field ) ? $ this -> stmt -> fetch ( ) [ $ field ] : $ this -> stmt -> fetch ( ) ; } return $ this -> results ; }
Get the first result from the SELECT-Statement.

@api

@param string $field

@return mixed
Get the first result from the SELECT - Statement .