如何将PHP代码中的a标签替换为长尾关键词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计38个文字,预计阅读时间需要1分钟。
php删除注释并简化代码如下:phpfunction tichuA($str) { $str1=preg_replace(/\*\*\/, , $str); $str2=preg_replace(/\/\*a\//, , $str1); return $str2;}
php剔除a标签//剔除a标签 function tichuA($str){ $str1 = preg_replace("/ ]*>/","", $str); $str2 = preg_replace("/<\/a>/","", $str1); return $str2; }
本文共计38个文字,预计阅读时间需要1分钟。
php删除注释并简化代码如下:phpfunction tichuA($str) { $str1=preg_replace(/\*\*\/, , $str); $str2=preg_replace(/\/\*a\//, , $str1); return $str2;}
php剔除a标签//剔除a标签 function tichuA($str){ $str1 = preg_replace("/ ]*>/","", $str); $str2 = preg_replace("/<\/a>/","", $str1); return $str2; }

