Reputation: 4349
I need help with searching the content of the REQUEST_URI.
REQUEST_URI
If $_SERVER['REQUEST_URI'] contains rmb_twi then do something.
$_SERVER['REQUEST_URI']
rmb_twi
Upvotes: 1
Views: 7461
Reputation: 165065
This is beyond simple. Read the manual entry for strpos()
if (false !== strpos($_SERVER['REQUEST_URI'], 'rmb_twi')) { // do something }
Upvotes: 10
Reputation: 490637
if (strstr($_SERVER['REQUEST_URI'], 'rmb_twi')) { ... }
Upvotes: 3