PHP Simple way to replace or remove empty lines with str_replace

前端 未结 3 1148
别那么骄傲
别那么骄傲 2021-01-14 07:41
$line-out = str_replace(\'\\r\', \'\', str_replace(\'\\n\', \'\', $line-in));

The above works for me but, I saw a [\\n\\r] example somewhere and I

3条回答
提交回复
热议问题