$text = "Un mot très très loooooooooooooooooong."; $newtext = wordwrap($text, 8, "\n", true); echo "$newtext\n"; ?>