After obtaining the text content through the form textarea input box, use explode(‘rn’, $str) to split the string content, and find that rn, n, and r cannot be split.
Use the PHP_EOL constant but split it into an array normally.
$arr = explode(PHP_EOL,$str);