Skip to content

Kirby 6.0.0

Yaml::encode()

Converts an array to an encoded YAML string

Yaml::encode(mixed $data): string

Parameters

Name Type Default
$datarequired mixed no default value

Return type

string

Parent class

Kirby\Data\Yaml