<?
var_dump(yaml_parse('foo: [b]'));
var_dump(yaml_parse('foo: [n]'));
var_dump(yaml_parse('foo: [y]'));
array(1) {
["foo"]=>
array(1) {
[0]=>
string(1) "b"
}
}
array(1) {
["foo"]=>
array(1) {
[0]=>
bool(false)
}
}
array(1) {
["foo"]=>
array(1) {
[0]=>
bool(true)
}
}
Module Version 1.2.0
LibYAML Version 0.1.6
var_dump(yaml_parse("foo: ['y']"));
array(1) {
["foo"]=>
array(1) {
[0]=>
string(1) "y"
}
}