SwatDB/SwatDBRecordsetWrapper.php
public function getFirst()
    {
        $first = null;

        if (count($this->objects) > 0) {
            $first = reset($this->objects);
        }

        return $first;
    }
public function getFirst()
    {
        $first = null;

        if (count($this->objects) > 0) {
            $first = reset($this->objects);
        }

        return $first;
    }
public function getFirst ( ) { $ first = null ; if ( count ( $ this -> objects ) > 0 ) { $ first = reset ( $ this -> objects ) ; } return $ first ; }
Retrieves the first object in this recordset

@return mixed the first object or null if there are no objects in this
recordset.
Retrieves the first object in this recordset