XML_Util::getXMLDeclaration

XML_Util::getXMLDeclaration()

XML_Util::getXMLDeclaration() -- build an xml declaration

Description

Returns an XML declaration based on parameters.

Parameter

  • string $version - XML version

  • string $encoding - XML encoding

  • boolean $standalone - whether document is standalone

Return value

string XML declaration

Note

This function should be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.