Universeorange.com/Docs/

R3m/framework Function reference string.wrap.word

{string.wrap.word(String $string, Int $width=75, String $break = "\n", Boolean $cut_long_words=false)}

Wraps a string to a given number of characters.

string
    The input string.
width
    The number of characters at which the string will be wrapped.
break
    The line is broken using the optional break parameter.
cut_long_words
    If the cut_long_words is set to true, the string is always wrapped at or before the specified width. 
    So if you have a word that is larger than the given width, it is broken apart. 
    (See second example). 
    When false the function does not split the word even if the width is smaller than the word width.

Returns the given string wrapped at the specified length.

More information:

https://www.php.net/manual/en/function.wordwrap

Last modified: 2021-06-07

© 2021 universeorange.com