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...
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"?>
Reading the source that's exactly what it does - I've raised this as a bug in their documentation.
精彩评论