Blame | Last modification | View Log | Download
--- %YAML:1.0test: Multiple quoted string on one linebrief: >Multiple quoted string on one lineyaml: |stripped_title: { name: "foo bar", help: "bar foo" }php: |array('stripped_title' => array('name' => 'foo bar', 'help' => 'bar foo'))---test: Empty sequenceyaml: |foo: [ ]php: |array('foo' => array())---test: Empty valueyaml: |foo:php: |array('foo' => null)---test: Inline string parsingbrief: >Inline string parsingyaml: |test: ['complex: string', 'another [string]']php: |array('test' => array('complex: string', 'another [string]'))---test: Booleanbrief: >Booleanyaml: |- false- true- null- ~- 'false'- 'true'- 'null'- '~'php: |array(false,true,null,null,'false','true','null','~',)---test: Empty lines in literal blocksbrief: >Empty lines in literal blocksyaml: |foo:bar: |foobarphp: |array('foo' => array('bar' => "foo\n\n\n \nbar\n"))---test: Empty lines in folded blocksbrief: >Empty lines in folded blocksyaml: |foo:bar: >foobarphp: |array('foo' => array('bar' => "\nfoo\n\nbar\n"))---test: IP addressesbrief: >IP addressesyaml: |foo: 10.0.0.2php: |array('foo' => '10.0.0.2')---test: A sequence with an embedded mappingbrief: >A sequence with an embedded mappingyaml: |- foo- bar: { bar: foo }php: |array('foo', array('bar' => array('bar' => 'foo')))---test: Octalbrief: as in spec example 2.19, octal value is convertedyaml: |foo: 0123php: |array('foo' => 83)---test: Octal stringsbrief: Octal notation in a string must remain a stringyaml: |foo: "0123"php: |array('foo' => '0123')---test: Octal stringsbrief: Octal notation in a string must remain a stringyaml: |foo: '0123'php: |array('foo' => '0123')---test: Octal stringsbrief: Octal notation in a string must remain a stringyaml: |foo: |0123php: |array('foo' => "0123\n")---test: Document as a simple hashbrief: Document as a simple hashyaml: |{ foo: bar }php: |array('foo' => 'bar')---test: Document as a simple arraybrief: Document as a simple arrayyaml: |[ foo, bar ]php: |array('foo', 'bar')