public function write($string)
    {
        $this->isWriting = true;
        if ($this->position === 0) {
            $this->writeUUHeader();
        }
        $write = $this->handleRemainder($string);
        if ($write !== '') {
            $this->writeEncoded($write);
        }
        $written = strlen($string);
        $this->position += $written;
        return $written;
    }
public function write($string)
    {
        $this->isWriting = true;
        if ($this->position === 0) {
            $this->writeUUHeader();
        }
        $write = $this->handleRemainder($string);
        if ($write !== '') {
            $this->writeEncoded($write);
        }
        $written = strlen($string);
        $this->position += $written;
        return $written;
    }
public function write ( $ string ) { $ this -> isWriting = true ; if ( $ this -> position === 0 ) { $ this -> writeUUHeader ( ) ; } $ write = $ this -> handleRemainder ( $ string ) ; if ( $ write !== '' ) { $ this -> writeEncoded ( $ write ) ; } $ written = strlen ( $ string ) ; $ this -> position += $ written ; return $ written ; }
Writes the passed string to the underlying stream after encoding it.

Note that reading and writing to the same stream without rewinding is not
supported.

Also note that some bytes may not be written until close or detach are
called.  This happens if written data doesn't align to a complete
uuencoded 'line' of 45 bytes.  In addition, the UU footer is only written
when closing or detaching as well.

@param string $string
@return int the number of bytes written
Writes the passed string to the underlying stream after encoding it .