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 |
array('empty' => array()) |
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 |
array('empty' => array()) |
19 |
--- |
20 |
test: Empty Sequence as Entire Document |
21 |
yaml: | |
22 |
[] |
23 |
php: | |
24 |
array() |
25 |
--- |
26 |
test: Empty Mapping as Entire Document |
27 |
yaml: | |
28 |
{} |
29 |
php: | |
30 |
array() |
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 |
'' |