PHP 删除内容中的链接地址
PHP 删除内容中的链接地址 [代码片段(2行)]
$string = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $string);
- 上一篇:php生成静态文件
- 下一篇:php 多维数组去重和查找
精彩图集
精彩文章
$string = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $string);
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229