1

我想获取两个字符串之间的字符串并将其替换为 docx 中的空白?我正在使用这段代码:

$section ="code";
preg_match('/@@'.$section.'(.*?)'.$section.'@@/',$this->_documentXML, $display);
$this->_documentXML = str_replace($display[0], "", $this->_documentXML);

它在 Windows 上运行良好,但在 Linux 上运行良好,有人可以提出建议吗?

4

0 回答 0