Skip to content

Kirby 4.2.0

Data::encode()

Encodes data with the specified handler

Data::encode($data, string $type): string

Parameters

Name Type Default
$data * mixed
$type * string

Return type

string

Parent class

Kirby\Data\Data