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')) {
...
}
精彩评论