ThinkPHP/Library/Vendor/Smarty/pluginsshared.mb_wordwrap.php

Smarty shared plugin

Functions

smarty_mb_wordwrap()

smarty_mb_wordwrap(string  $str, integer  $width = 75, string  $break = "\n", boolean  $cut = false) : string

Wrap a string to a given number of characters

Parameters

string $str

the string to wrap

integer $width

the width of the output

string $break

the character used to break the line

boolean $cut

ignored parameter, just for the sake of

Returns

string —

wrapped string