get the url without the query string php

66

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

Comments

Submit
0 Comments