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 b18767f commit 4b9ccfdCopy full SHA for 4b9ccfd
components/yaml.rst
@@ -421,8 +421,8 @@ you can dump them as ``~`` with the ``DUMP_NULL_AS_TILDE`` flag::
421
Dumping Numeric Keys as Strings
422
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
423
424
-Sometime YAML keys must be always string. This component don't convert keys to string by default but you can
425
-make it convert numeric keys as string by using the ``DUMP_NUMERIC_KEY_AS_STRING`` flag::
+By default, digit-only array keys are dumped as integers. You can use the
+``DUMP_NUMERIC_KEY_AS_STRING`` flag if you want to dump string-only keys::
426
427
$dumped = Yaml::dump([200 => 'foo']);
428
// 200: foo
0 commit comments