Mecha CMS

To::YAML()

Convert array into YAML string.

2.0.0Static

To::YAML(array $in, string $dent = '  ' $docs = false, $e = true);

Example:

$A = To::YAML(['foo' => 'bar']);

Result:

$A = 'foo: bar';