Mega Code Archive

 
Categories / Php / Strings
 

Wordwrap() requires one argument, the string to be transformed

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); ?>