XMLWriter::startDocument

xmlwriter_start_document

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

XMLWriter::startDocument -- xmlwriter_start_documentドキュメントタグを作成する

説明

オブジェクト指向型

public XMLWriter::startDocument(string|null $version = "1.0", string|null $encoding = null, string|null $standalone = null): bool

手続き型

xmlwriter_start_document(
    XMLWriter $writer,
    string|null $version = "1.0",
    string|null $encoding = null,
    string|null $standalone = null
): bool

ドキュメントを開始します。

パラメータ

writer

手続き型のコールでのみ使用します。 変更される XMLWriter のインスタンスです。 このインスタンスは、xmlwriter_open_uri() あるいは xmlwriter_open_memory() を呼び出すことで取得したものです。

version

XML 宣言で使用するドキュメントのバージョン番号。

encoding

XML 宣言で使用するドキュメントのエンコーディング。

standalone

yes あるいは no

返り値

成功した場合に true を、失敗した場合に false を返します。

変更履歴

バージョン 説明
8.0.0 引数 writer は、XMLWriter のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。

参考

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top