Helping ordinary people create extraordinary websites!


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.