Skip to content

Kirby 4.5.0

Yaml::encode()

Converts an array to an encoded YAML string

Yaml::encode($data): string

Parameters

Name Type Default
$data * mixed

Return type

string

Parent class

Kirby\Data\Yaml