Skip to content

Kirby 4.4.1

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 $string = null): string

Parameters

Name Type Default
$string string|null null

Return type

string

Parent class

Kirby\Toolkit\Str