<?php $textblock = "this is a test. this is a test. this is a test. this is a test"; echo wordwrap ($textblock, 20, "<br />"); ?>