Search code examples
phpxml-serializationpear

what does the 'addDecl' option do in pear - XML_Serialize


I am looking at the examples given at the XML_Serialize pear plugin manual.

I can't figure out what the option 'addDecl' does in this plugin.

What does this do?

I can't seem to find it in their documentation...


Solution

  • At a (confident) guess, it'll be the XML Declaration at the start of the document

    i.e.

    <?xml version="1.0" encoding="UTF-8"?>