Skip to content

Kirby 5.0.4

Str::widont()

The widont function makes sure that there are no typographical widows at the end of a paragraph – that's a single word in the last line

Str::widont(string|null $string): string

Parameters

Name Type Default
$string stringornull no default value

Return type

string

Parent class

Kirby\Toolkit\Str