如何使用PHP去除页面中的a标签?
- 内容介绍
- 文章标签
- 相关推荐
本文共计43个文字,预计阅读时间需要1分钟。
PHP 删除注释内容phpfunction tichuA($str) { $str1=preg_replace(/\*\*\/, , $str); $str2=preg_replace(/\/\*.*?\*\//s, , $str1); return $str2;}
php剔除a标签//剔除a标签 function tichuA($str){ $str1 = preg_replace("/ ]*>/","", $str); $str2 = preg_replace("/<\/a>/","", $str1); return $str2; }
本文共计43个文字,预计阅读时间需要1分钟。
PHP 删除注释内容phpfunction tichuA($str) { $str1=preg_replace(/\*\*\/, , $str); $str2=preg_replace(/\/\*.*?\*\//s, , $str1); return $str2;}
php剔除a标签//剔除a标签 function tichuA($str){ $str1 = preg_replace("/ ]*>/","", $str); $str2 = preg_replace("/<\/a>/","", $str1); return $str2; }

