Mega Code Archive

 
Categories / Php / Functions
 

Wrapping Text with wordwrap() and nl2br()

<?php     $string = "one line\n";     $string .= "another line\n";     $string .= "a third for luck\n";     print nl2br( $string ); ?>