string wordwrap ( string str [, int width [, string break [, bool cut]]] )
<?php $textblock = "this is a test. this is a test. this is a test. this is a test"; echo wordwrap ($textblock, 20, "<br />"); ?>