开发者

Find string in REQUEST_URI

I need help with searching the content of the REQUEST_URI.

If $_SERVER['REQUEST_URI'] contains rmb_twi开发者_如何学Go then do something.


This is beyond simple. Read the manual entry for strpos()

if (false !== strpos($_SERVER['REQUEST_URI'], 'rmb_twi')) {
    // do something
}


if (strstr($_SERVER['REQUEST_URI'], 'rmb_twi')) {
   ...
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜