Skip to content

Kirby 4.5.0

Str::encoding()

Tries to detect the string encoding

Str::encoding(string $string): string

Parameters

Name Type Default
$string * string

Return type

string

Parent class

Kirby\Toolkit\Str