在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
PHP在不同的系统中,换行是不同的
Linux:\n
Windows:\r\n
mac:\r
所以去除回车换行的方法:
1.使用php定义好的变量(比较好的方法,推荐)
$str= str_replace(PHP_EOL, '', $str);
2.使用str_replace 来替换换行
$str= str_replace(array("\r\n", "\r", "\n"), "", $str);
评论
2022-07-18
2022-08-17
2022-07-29
2022-08-13
krishnaik06/Machine-Learning-in-90-days
An issue was discovered in Veritas NetBackup 8.1.x through 8.1.2, 8.2, 8.3.x thr
armancodv/building-energy-model-matlab: It is a small software which is develope
在美元的英文“dollar”里面明明没有字母“s”,为什么美元的符号($)是一条竖线穿过字
FGRibreau/import-tweets-to-mastodon: How to import tweets to mastodon (e.g. http
包包是女士的最爱,可是您知道世界十大奢侈名牌包包是哪几款吗,最贵的包包要好几十万
tboronczyk/localization-middleware: PSR-15 middleware to assist primarily with l
Multiple vulnerabilities in the web-based management interface of Cisco Small Bu
长沙城南,有一所以“环保”为名的学校,从1979年创立以来,四易归属、五更其名。 这
heinrichreimer/material-intro: A simple material design app intro with cool anim
请发表评论