Gdn_DataSet::lastRow PHP Method

lastRow() public method

Returns the last row in the or FALSE if there are no rows to return.
public lastRow ( string $DatasetType = false )
$DatasetType string The format in which the result should be returned: object or array.
    public function &lastRow($DatasetType = false)
    {
        $Result =& $this->result($DatasetType);
        if (count($Result) == 0) {
            return $this->_EOF;
        }
        return $Result[count($Result) - 1];
    }