Skip to content

Kirby 5.2.0

Str::label()

Converts keys or ids into human-readable labels by normalizing punctuation, splitting camel- or kebab-case, and title-casing the result.

Str::label(string $value): string

Parameters

Name Type Default
$valuerequired string no default value

Return type

string

Parent class

Kirby\Toolkit\Str