xmlWriterWriteComment

SYNOPSIS

int xmlWriterWriteComment(xmlWriter writer, string content)

Parameters:

  • writer - the xmlWriter

  • content - the content of the CDATA section

Returns:

  • the bytes written (may be 0 because of buffering) or -1 in case of error

xmlWriterWriteComment() writes out a complete comment. It is the same as calling

xmlWriterStartComment($writer)
    xmlWriterWrite($writer, $content)
    xmlWriterEndComment($writer)


EXAMPLE

<$ret = (xmlWriterWriteComment($writer, 'This is important'))>


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.