开发者

Find string in REQUEST_URI

开发者 https://www.devze.com 2023-02-11 08:58 出处:网络
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()

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

精彩评论

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