Skip to content

Kirby 5.2.0

Data::decode()

Decodes data with the specified handler

Data::decode($string, string $type, bool $fail = true): array

Parameters

Name Type Default
$stringrequired mixed no default value
$typerequired string no default value
$fail bool true

Return type

array

Parent class

Kirby\Data\Data