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 0f94f96 commit 56114b9Copy full SHA for 56114b9
components/serializer.rst
@@ -714,7 +714,7 @@ The ``XmlEncoder`` will encode this object like that::
714
Be aware that this encoder will consider keys beginning with ``@`` as attributes::
715
716
$encoder = new XmlEncoder();
717
- $encoder->encode(array('foo' => array('@bar' => 'value')));
+ $encoder->encode(array('foo' => array('@bar' => 'value')), 'xml');
718
// will return:
719
// <?xml version="1.0"?>
720
// <response>
0 commit comments