PHP wordwrap
As it can be understood from the wordwrap name, one of the PHP tags, it divides the sentence according to the specified limit.
<?php
$str = "After the words end, the certain number will move to the bottom line";
echo wordwrap($str,15,"<br>\n",TRUE);
?>