The initial part to get the URL I already made using this code:
//URL ATUAL
$url_atual = str_replace("/", "", $_SERVER[REQUEST_URI]);
echo $url_atual;
..... If I'm on the url link returns me: index.php
If I'm on the url link returns me: index.php? module = tab
But I need to know how to know if after index.php is using any "?" like this example: index.php? module = tab .....
I need to create a link
if only index.php adds: ? lang = 1 ">
result index.php? lang = 1
or
if it is index.php? module = guide & lang = 1 ">
result index.php? module = guide & lang = 1