Dapatkan URL tanpa string kueri PHP

// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');
Lonely Doge