You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
653 B
46 lines
653 B
4 years ago
|
--- %YAML:1.0
|
||
|
test: Empty Sequence
|
||
|
brief: >
|
||
|
You can represent the empty sequence
|
||
|
with an empty inline sequence.
|
||
|
yaml: |
|
||
|
empty: []
|
||
|
php: |
|
||
|
['empty' => []]
|
||
|
---
|
||
|
test: Empty Mapping
|
||
|
brief: >
|
||
|
You can represent the empty mapping
|
||
|
with an empty inline mapping.
|
||
|
yaml: |
|
||
|
empty: {}
|
||
|
php: |
|
||
|
['empty' => []]
|
||
|
---
|
||
|
test: Empty Sequence as Entire Document
|
||
|
yaml: |
|
||
|
[]
|
||
|
php: |
|
||
|
[]
|
||
|
---
|
||
|
test: Empty Mapping as Entire Document
|
||
|
yaml: |
|
||
|
{}
|
||
|
php: |
|
||
|
[]
|
||
|
---
|
||
|
test: Null as Document
|
||
|
yaml: |
|
||
|
~
|
||
|
php: |
|
||
|
null
|
||
|
---
|
||
|
test: Empty String
|
||
|
brief: >
|
||
|
You can represent an empty string
|
||
|
with a pair of quotes.
|
||
|
yaml: |
|
||
|
''
|
||
|
php: |
|
||
|
''
|