public function stream_write($data)
    {
        if (! $this->temporaryFileHandle) {
            return 0;
        }
        
        $len = strlen($data);
        fwrite($this->temporaryFileHandle, $data, $len);
        return $len;
    }
public function stream_write($data)
    {
        if (! $this->temporaryFileHandle) {
            return 0;
        }
        
        $len = strlen($data);
        fwrite($this->temporaryFileHandle, $data, $len);
        return $len;
    }
public function stream_write ( $ data ) { if ( ! $ this -> temporaryFileHandle ) { return 0 ; } $ len = strlen ( $ data ) ; fwrite ( $ this -> temporaryFileHandle , $ data , $ len ) ; return $ len ; }
Write to the stream

@param string $data
@return integer
Write to the stream