public function write($string)
    {
        $chunked = $this->getChunkedString($string);
        $this->position += strlen($chunked);
        return $this->stream->write($chunked);
    }
public function write($string)
    {
        $chunked = $this->getChunkedString($string);
        $this->position += strlen($chunked);
        return $this->stream->write($chunked);
    }
public function write ( $ string ) { $ chunked = $ this -> getChunkedString ( $ string ) ; $ this -> position += strlen ( $ chunked ) ; return $ this -> stream -> write ( $ chunked ) ; }
Writes the passed string to the underlying stream, ensuring line endings
are inserted every "line length" characters in the string.

@param string $string
@return number of bytes written
Writes the passed string to the underlying stream ensuring line endings are inserted every line length characters in the string .