public function rewind()
    {
        if (!$this->is_seekable) {
            throw new Exception('stream does not support seeking');
        }

        rewind($this->stream);
        $this->offset = 0;
        $this->value = false;
        if ($this->flags & SplFileObject::READ_AHEAD) {
            $this->current();
        }
    }
public function rewind()
    {
        if (!$this->is_seekable) {
            throw new Exception('stream does not support seeking');
        }

        rewind($this->stream);
        $this->offset = 0;
        $this->value = false;
        if ($this->flags & SplFileObject::READ_AHEAD) {
            $this->current();
        }
    }
public function rewind ( ) { if ( ! $ this -> is_seekable ) { throw new Exception ( 'stream does not support seeking' ) ; } rewind ( $ this -> stream ) ; $ this -> offset = 0 ; $ this -> value = false ; if ( $ this -> flags & SplFileObject :: READ_AHEAD ) { $ this -> current ( ) ; } }
Rewind the file to the first line.

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

@throws Exception if the stream resource is not seekable
Rewind the file to the first line .