public function getOne()
    {
        $res = $this->getRow();
        $this->rewind();
        $this->stmt = null;

        return $res[0];
    }
public function getOne()
    {
        $res = $this->getRow();
        $this->rewind();
        $this->stmt = null;

        return $res[0];
    }
public function getOne ( ) { $ res = $ this -> getRow ( ) ; $ this -> rewind ( ) ; $ this -> stmt = null ; return $ res [ 0 ] ; }
Will execute DSQL query and return first column of a first row.

You can also simply cast your DSQL into string to get this value

echo $dsql;

@return string Value of first column in first row
Will execute DSQL query and return first column of a first row .