最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP 清理字符串中所有无用标签
时间:2022-06-24 22:59:37 编辑:袖梨 来源:一聚教程网
例子
代码如下 | 复制代码 |
function Bing_string_cleanr( $string ){ |
使用方法:
代码如下 | 复制代码 |
echo Bing_string_cleanr( '内 容 asdfeiuonsdfje' ); |
删除空白
代码如下 | 复制代码 |
$str = " This line containstliberal rn use of whitespace.nn"; // First remove the leading/trailing whitespace // Now remove any doubled-up whitespace // Finally, replace any non-space whitespace, with a space // Echo out: 'This line contains liberal use of whitespace.' {$str}"; ?> |
相关文章
- 《辐射4》q键使用介绍 04-26
- 《辐射4》人物介绍 04-26
- 《下一站江湖2》风卷残云获得方法 04-26
- 《The Star Named EOS未晓星程》配置要求介绍 04-26
- 《辐射4》设置中文方法 04-26
- 《辐射4》88号避难所终端机一直初始化解决办法 04-26