一段很简单的代码,刚刚写的时候有用,平时是用来替换空格为-的 <?PHP $rep_product_id=$myrow["product_id"];           if (substr_count($rep_product_id,"$keywords")>0){                 $rep_product_id= str_replace("$keywords","<font color=red>".$keywords."</font>",$rep_product_id);                 }                 echo $rep_product_id?> PHP查询显示关键字为红色

相关文章:

  • 2022-01-15
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案