PHP Conference Japan 2024

XMLWriter::endComment

xmlwriter_end_comment

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 1.0.0)

XMLWriter::endComment -- xmlwriter_end_comment建立結束註釋

說明

物件導向風格

public XMLWriter::endComment(): bool

程序式風格

xmlwriter_end_comment(XMLWriter $writer): bool

結束目前的註釋。

參數

writer

僅適用於程序式呼叫。正在修改的 XMLWriter 實例。此物件是從呼叫 xmlwriter_open_uri()xmlwriter_open_memory() 傳回的。

回傳值

成功時回傳 true,失敗時回傳 false

更新日誌

版本 說明
8.0.0 writer 參數現在預期是一個 XMLWriter 實例;先前預期是一個 資源

另請參閱

新增註記

使用者提供的註記

此頁面沒有使用者提供的註記。
To Top