if url has # php code example
Example 1: php if url contains
if(strpos($_SERVER['REQUEST_URI'], "string")) {
...
}
Example 2: if url has certain code then php
if (strpos($_SERVER['REQUEST_URI'], "url word") !== false){
// code
}
if(strpos($_SERVER['REQUEST_URI'], "string")) {
...
}
if (strpos($_SERVER['REQUEST_URI'], "url word") !== false){
// code
}