How to find a string in current Url?
If u want to check a string in current url.
So go through this note:
strpos($_SERVER['REQUEST_URI']);
example:
if(strpos($_SERVER['REQUEST_URI'],"userprofile")!==false)
{
Echo “profile.php”
}
Where $_SERVER['REQUEST_URI'] use for get the current url
Comments
Post a Comment