public function valid()
    {
        if ($this->flags & SplFileObject::READ_AHEAD) {
            return $this->current() !== false;
        }

        return !feof($this->stream);
    }
public function valid()
    {
        if ($this->flags & SplFileObject::READ_AHEAD) {
            return $this->current() !== false;
        }

        return !feof($this->stream);
    }
public function valid ( ) { if ( $ this -> flags & SplFileObject :: READ_AHEAD ) { return $ this -> current ( ) !== false ; } return ! feof ( $ this -> stream ) ; }
Not at EOF.

@see http://php.net/manual/en/splfileobject.valid.php

@return bool
Not at EOF .