PHP: Return string between two characters

后端 未结 4 1481
余生分开走
余生分开走 2020-12-30 07:09

I am wanting to use \"keywords\" within a large string. These keywords start and end using my_keyword and are user defined. How, within a large string, can I sear

4条回答
  •  一整个雨季
    2020-12-30 07:24

    If you want to extract a string that's enclosed by two different strings (Like something in parentheses, brackets, html tags, etc.), here's a post more specific to that:

    Grabbing a String Between Different Strings

提交回复
热议问题