Skip to content

Kirby 4.1.2

Str::toType()

Convert the string to the given type

Str::toType($string, $type)

Parameters

Name Type Default
$string * mixed
$type * mixed

Parent class

Kirby\Toolkit\Str