numericMappingKeys.yml 380 B

123456789101112131415161718192021222324
  1. --- %YAML:1.0
  2. test: A sequence with an unordered array
  3. brief: >
  4. A sequence with an unordered array
  5. yaml: |
  6. 1: foo
  7. 0: bar
  8. php: |
  9. array(1 => 'foo', 0 => 'bar')
  10. ---
  11. test: Integers as Map Keys
  12. brief: >
  13. An integer can be used as dictionary key.
  14. yaml: |
  15. 1: one
  16. 2: two
  17. 3: three
  18. php: |
  19. array(
  20. 1 => 'one',
  21. 2 => 'two',
  22. 3 => 'three'
  23. )