Obtenez l'URL sans la chaîne de requête PHP
// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');
Lonely Doge
// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');