for ($i = 0; $i < mb_strlen($in); $i++) { if ($i > 350 && mb_substr($in, $i, 1) == '.') { $endstr = mb_substr($in, $i + 1); $endstr = preg_replace("/^\s*/u", '', $endstr); $in = mb_substr($in, 0, $i) . ".\n" . $endstr; break; } }
Who is less? The essence of this process is to make a transfer from the text after about 350 characters, after the first point. This is a very terrible construction.
Thank.