/**
* PHP删除字符串中的URL
*
* @param
* @arrange 512-笔记网: www.512Pic.com
**/
$string = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i','',$string);
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528236.html