public function writeString($string)
    {
        fwrite($this->sharedStringsFilePointer, '<si><t xml:space="preserve">' . $this->stringsEscaper->escape($string) . '</t></si>');
        $this->numSharedStrings++;

        // Shared string ID is zero-based
        return ($this->numSharedStrings - 1);
    }
public function writeString($string)
    {
        fwrite($this->sharedStringsFilePointer, '<si><t xml:space="preserve">' . $this->stringsEscaper->escape($string) . '</t></si>');
        $this->numSharedStrings++;

        // Shared string ID is zero-based
        return ($this->numSharedStrings - 1);
    }
public function writeString ( $ string ) { fwrite ( $ this -> sharedStringsFilePointer , '<si><t xml:space="preserve">' . $ this -> stringsEscaper -> escape ( $ string ) . '</t></si>' ) ; $ this -> numSharedStrings ++ ; // Shared string ID is zero-based return ( $ this -> numSharedStrings - 1 ) ; }
Writes the given string into the sharedStrings.xml file.
Starting and ending whitespaces are preserved.

@param string $string
@return int ID of the written shared string
Writes the given string into the sharedStrings . xml file . Starting and ending whitespaces are preserved .