XML_Util::createCDataSection XML_Util::getDocTypeDeclaration

XML_Util

PEAR Manual


XML_Util::createComment

XML_Util::createComment() -- create an XML comment

Synopsis

      require_once 'XML/Util.php';
     

string XML_Util::createComment ( string $data )

Description

Creates an XML comment, by embedding the supplied data in <!-- and -->.

Parameter

  • string $data - data for the comment.

Return value

string comment

Note

This function should be called statically.



XML_Util::createCDataSection XML_Util::getDocTypeDeclaration

XML_Util

PEAR Manual