public function getEOL()
    {
        $pos = $this->pos();

        $this->rewind();
        $pos2 = $this->search("\n", false, false);
        if ($pos2) {
            $this->seek(-1);
            $eol = ($this->getChar() == "\r")
                ? "\r\n"
                : "\n";
        } else {
            $eol = is_null($pos2)
                ? null
                : "\n";
        }

        $this->seek($pos, false);

        return $eol;
    }
public function getEOL()
    {
        $pos = $this->pos();

        $this->rewind();
        $pos2 = $this->search("\n", false, false);
        if ($pos2) {
            $this->seek(-1);
            $eol = ($this->getChar() == "\r")
                ? "\r\n"
                : "\n";
        } else {
            $eol = is_null($pos2)
                ? null
                : "\n";
        }

        $this->seek($pos, false);

        return $eol;
    }
public function getEOL ( ) { $ pos = $ this -> pos ( ) ; $ this -> rewind ( ) ; $ pos2 = $ this -> search ( "\n" , false , false ) ; if ( $ pos2 ) { $ this -> seek ( - 1 ) ; $ eol = ( $ this -> getChar ( ) == "\r" ) ? "\r\n" : "\n" ; } else { $ eol = is_null ( $ pos2 ) ? null : "\n" ; } $ this -> seek ( $ pos , false ) ; return $ eol ; }
Auto-determine the EOL string.

@since 1.3.0

@return string  The EOL string, or null if no EOL found.
Auto - determine the EOL string .