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 f0e2406 commit 45c9c97Copy full SHA for 45c9c97
components/serializer.rst
@@ -804,7 +804,10 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes
804
the key ``#comment`` for encoding XML comments::
805
806
$encoder = new XmlEncoder();
807
- $encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment')), 'xml');
+ $encoder->encode(array(
808
+ 'foo' => array('@bar' => 'value'),
809
+ 'qux' => array('#comment' => 'A comment'),
810
+ ), 'xml');
811
// will return:
812
// <?xml version="1.0"?>
813
// <response>
0 commit comments