File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -441,14 +441,14 @@ By default, digit-only array keys are dumped as integers. You can use the
441
441
// '200': foo
442
442
443
443
Dumping Collection of Maps
444
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
444
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
445
445
446
446
By default, the collection of maps uses a hyphen on a separate line as a delimiter.
447
447
To use the delimiter line as part of the map dump, use the ``Yaml::DUMP_COMPACT_NESTED_MAPPING `` flag.
448
448
449
449
Dump without flag set:
450
450
451
- .. code-block :: text
451
+ ::
452
452
453
453
planets:
454
454
-
@@ -460,11 +460,11 @@ Dump without flag set:
460
460
461
461
Dump with ``Yaml::DUMP_COMPACT_NESTED_MAPPING `` flag set:
462
462
463
- .. code-block :: php
463
+ ::
464
464
465
465
$dumped = Yaml::dump(['planets' => $planets], 2, 0, Yaml::DUMP_COMPACT_NESTED_MAPPING);
466
466
467
- .. code-block :: text
467
+ ::
468
468
469
469
planets:
470
470
- name: Mercury
You can’t perform that action at this time.
0 commit comments