PHP Velho Oeste 2024

XMLWriter::writeComment

xmlwriter_write_comment

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

XMLWriter::writeComment -- xmlwriter_write_commentWrite full comment tag

설명

객체 기반 형식

bool XMLWriter::writeComment ( string $content )

절차식 형식

bool xmlwriter_write_comment ( resource $xmlwriter , string $content )

Writes a full comment.

인수

xmlwriter

순차적 호출에서만 사용. XMLWriter resource가 수정됩니다. 이 자원은 xmlwriter_open_uri()xmlwriter_open_memory() 호출로 만들어집니다.

content

The contents of the comment.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

참고

add a note add a note

User Contributed Notes 1 note

up
0
thewrs at gmail dot com
16 years ago
This will write a XML <!----> style comment to your XMLWriter resource.

Strings up to 50 characters long are displayed on a single line with no spacing between the tags.

Anything above 50 characters will show on multiple formatted lines. Using the \n metacharater inserts a newline and maintains indenting.
To Top