Reference

Guide

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 Description
$string string null

Return type

string

Source code

kirby/src/Toolkit/Str.php#L963