Dibi\Result::fetchSingle PHP Method

fetchSingle() final public method

Like fetch(), but returns only first field.
final public fetchSingle ( ) : mixed
return mixed value on success, FALSE if no next record
    public final function fetchSingle()
    {
        $row = $this->getResultDriver()->fetch(TRUE);
        if (!is_array($row)) {
            return FALSE;
        }
        $this->fetched = TRUE;
        $this->normalize($row);
        return reset($row);
    }