By default, wordwrap() wraps lines every 75 characters and uses n as its line-break character. <?php $string = "this is a test.this is a test.this is a test.this is a test.this is a test.this is a test."; $string .= "this is a test.this is a test.this is a test.this is a test.this is a test.this is a test."; print wordwrap($string); ?>