$text = "this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test."; $text = wordwrap($text, 20, ""); print $text;