Preg_Replace and UTF8

后端 未结 3 980
清酒与你
清酒与你 2021-01-05 22:55

I\'m enhancing our video search page to highlight the search term(s) in the results. Because user can enter judas priest and a video has Judas Priest

3条回答
  •  心在旅途
    2021-01-05 23:43

    Not sure what your problem is stemming from, but I just put together this little test case:

    $1", "test:".$lc." end test");
    

    It's output on my machine:

    SREČA
    sreča
    test:sreča end test
    

    Seems to be working properly?

提交回复
热议问题