Skip to content

Kirby 4.4.1

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