怎么去掉字符串的换行,tab 特殊字符?
------解决方案--------------------
str_replace('\n','',$content);
str_replace('\r','',$content);
str_replace('\t','',$content);
------解决方案--------------------
$s='aa bb
cc';
echo preg_replace('/\s+/','',$s);
aabbcc
$s='aa bb
cc';
echo preg_replace('/\s+/','',$s);