php输出的html怎么才能让查看源代码时是不换行的

2025-12-16 10:50:46
推荐回答(2个)
回答1:

$neirong = str_replace(array("\r\n",'\r','\n'),"",$neirong);

回答2:

用正则把代码里边的\r\n都删除