הנה דוגמא:
PHP קוד:
$text = "After 20 sings it will break and will create a new line.";
$text = wordwrap($text, 20, "<br />");
echo $text;
לאחר כל 20 תווים זה ירד לך שורה.
כלומר זה יראה לך ככה:
קוד:
After 20 sings it will break and will cr
eate a new line.