求解这四句代码的作用讲解?
$html = preg_replace('/>(\s+)/','>',$html);
$html = preg_replace('/(\s+)</','<',$html);
$html = str_replace("\r\n",'',$html);
$html = str_replace("\t",'',$html);
$html = preg_replace('/>(\s+)/','>',$html);
$html = preg_replace('/(\s+)</','<',$html);
$html = str_replace("\r\n",'',$html);
$html = str_replace("\t",'',$html);
解决方案 »
- <BUTTON class=button onclick="Run('file:///D:/GooglePinyinInstaller.exe')">QQ</BUTTON>
- 我想做个exe软件,该用什么编辑器?怎么做啊?最简单的那种exe可以安装的
- php 中单引号 和双引号的使用【请教】
- 本地测试php update一条记录进mysql,cpu占用率20%正常不?
- 有没有办法让PHP和JSP脚本交换数据?100分
- 求php读写xml的代码(类似留言簿核心代码)
- 关于一个函数引用问题,帮忙!!!
- 请问哪有PHP文本或PHP+mysql的影视在线源代码提供下载?
- 說說基于瀏覽器項目的報表制作
- 能不能让程序在后台运行?不要显示出下载没有完毕
- php 退出链接时候 清除session
- 写入文件,换行符怎么打?
第三句替换回车为空
第四句替换制表符(tab)为空
$html = preg_replace('/(\s+)</','<',$html);// 用‘<’替换 ‘<’和空白部分!
$html = str_replace("\r\n",'',$html); // 去掉换行和回车,
$html = str_replace("\t",'',$html); // 去掉 制表符