php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::writeComment

XMLWriter::writeComment

PHP function Edit on GitHub ✎

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

Write full comment tag

Description

Oop

XMLWriter::writeComment(string $content): bool

Procedural

xmlwriter_write_comment(XMLWriter $writer, string $content): bool

Writes a full comment.

Parameters

content

The contents of the comment.

Return Values

Success

Changelog

VersionDescription

See Also

  • XMLWriter::startComment
  • XMLWriter::endComment

Source: reference/xmlwriter/xmlwriter/writecomment.xml · from the official PHP manual (php/doc-en)