how to highlight search results

前端 未结 3 2071
野的像风
野的像风 2020-12-21 01:55

hello i have a search function in that i will search a db for keywords. i would like to highlight the keywords and found a second function that i would like to implement int

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-21 02:25

    By using str_ireplace instead of str_replace, the function will work case insensitive

提交回复
热议问题