Simple preg_replace

后端 未结 4 961
终归单人心
终归单人心 2021-02-05 13:06

I cant figure out preg_replace at all, it just looks chinese to me, anyway I just need to remove \"&page-X\" from a string if its there.

X

4条回答
  •  鱼传尺愫
    2021-02-05 13:10

    $outputstring = preg_replace('/&page-\d+/', "", $inputstring);
    

    preg_replace()

提交回复
热议问题