YtsNullsAndEmpties.yml 653 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- %YAML:1.0
  2. test: Empty Sequence
  3. brief: >
  4. You can represent the empty sequence
  5. with an empty inline sequence.
  6. yaml: |
  7. empty: []
  8. php: |
  9. ['empty' => []]
  10. ---
  11. test: Empty Mapping
  12. brief: >
  13. You can represent the empty mapping
  14. with an empty inline mapping.
  15. yaml: |
  16. empty: {}
  17. php: |
  18. ['empty' => []]
  19. ---
  20. test: Empty Sequence as Entire Document
  21. yaml: |
  22. []
  23. php: |
  24. []
  25. ---
  26. test: Empty Mapping as Entire Document
  27. yaml: |
  28. {}
  29. php: |
  30. []
  31. ---
  32. test: Null as Document
  33. yaml: |
  34. ~
  35. php: |
  36. null
  37. ---
  38. test: Empty String
  39. brief: >
  40. You can represent an empty string
  41. with a pair of quotes.
  42. yaml: |
  43. ''
  44. php: |
  45. ''