<?php
$str= 'A rough criminal gets into an argument over a girl in a dance hall. The argument turns into a fight, and the criminal is shot. As everyone else looks on,...';
$x = '90';
$array = explode( "\n", wordwrap( $str, $x));
echo implode("<br>",$array);
?>
A rough criminal gets into an argument over a girl in a dance hall. The argument turns<br>into a fight, and the criminal is shot. As everyone else looks on,...
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
A rough criminal gets into an argument over a girl in a dance hall. The argument turns<br>into a fight, and the criminal is shot. As everyone else looks on,...