PHP中替换textarea时的回车换行

$a = preg_replace("/[\r\n]+/", ',', $a);

替换textarea时的回车换行方法

原文地址:https://www.cnblogs.com/betx/p/2496381.html