<?php $text = "Your text comes here."; $num = 5; $newtext = wordwrap($text, $num, "<br />\n"); echo $newtext; ?>