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: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.