(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
XMLWriter::setIndentString -- xmlwriter_set_indent_string — 設定縮排所使用的字串
物件導向風格
程序式風格
設定用於縮排結果 XML 中每個元素/屬性的字串。
writer
僅適用於程序式呼叫。 正在修改的 XMLWriter 實例。 這個物件是從呼叫 xmlwriter_open_uri() 或 xmlwriter_open_memory() 返回的。
indentation
縮排字串。
注意:
當開啟 xmlwriter 時,縮排會被重置。