We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac94be commit 9df531aCopy full SHA for 9df531a
components/serializer.rst
@@ -802,7 +802,7 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes
802
the key ``#comment`` for encoding XML comments::
803
804
$encoder = new XmlEncoder();
805
- $encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment));
+ $encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment')), 'xml');
806
// will return:
807
// <?xml version="1.0"?>
808
// <response>
0 commit comments