library/database/class.dataset.php
public function &LastRow($DatasetType = FALSE) {
      $Result = &$this->Result($DatasetType);
      if (count($Result) == 0)
         return $this->_EOF;

      return $Result[count($Result) - 1];
   }
public function &LastRow($DatasetType = FALSE) {
      $Result = &$this->Result($DatasetType);
      if (count($Result) == 0)
         return $this->_EOF;

      return $Result[count($Result) - 1];
   }
public function & LastRow ( $ DatasetType = FALSE ) { $ Result = & $ this -> Result ( $ DatasetType ) ; if ( count ( $ Result ) == 0 ) return $ this -> _EOF ; return $ Result [ count ( $ Result ) - 1 ] ; }
Returns the last row in the or FALSE if there are no rows to return.

@param string $DatasetType The format in which the result should be returned: object or array.
Returns the last row in the or FALSE if there are no rows to return .