I want to get a URL and its parameters. Example:
www.someweb.com/somepage.php?id=10
How to get only
Finally found this method:
basename($_SERVER['REQUEST_URI']);
This will return all URLs with page name. (e.g.: index.php?id=1&name=rr&class=10).
index.php?id=1&name=rr&class=10