
目的:
欢迎来到php中文网www.php.cn
修改后:
欢迎来到php中文网www.php.cn
解决方法:
$str = "欢迎来到php中文网www.php.cn"; $str = htmlspecialchars_decode($str); $str = preg_replace("/]*>(.*?)<\/a>/is", "$1", $str); echo $str;
运行结果为:
立即学习“PHP免费学习笔记(深入)”;
欢迎来到php中文网www.php.cn
更多相关教程请访问php中文网。











