$_options
$_options :
Dump PHP data structures to YAML.
dump( $value, integer $options = array()) : string
Dumps PHP array to YAML.
The dump method, when supplied with an array, will do its best to convert the array into valid YAML.
Options:
indent:
number of spaces to indent children (default 2)
wordwrap:
wordwrap column number (default 40)
| $value | ||
| integer | $options | Options for dumping. |
YAML representation of $value.
_yamlize(string $key, string|array $value, integer $indent, boolean $sequence = false) : string
Attempts to convert a key/value array item to YAML.
| string | $key | The name of the key. |
| string|array | $value | The value of the item. |
| integer | $indent | The indent of the current node. |
| boolean | $sequence | Is this an entry of a sequence? |
_dumpNode(string $key, string $value, integer $indent, boolean $sequence = false) : string
Returns YAML from a key and a value.
| string | $key | The name of the key. |
| string | $value | The value of the item. |
| integer | $indent | The indent of the current node. |
| boolean | $sequence | Is this an entry of a sequence? |