wordwrap() has two more optional arguments: a number representing the maximum number of characters per line and a string representing the end of the line string. : wordwrap String PHP

 
<?php
print wordwrap( $string, 24, "<br/>n");
?>