Answers for "get the url without the query string php"

PHP
0

get the url without the query string php

// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');
Posted by: Guest on October-29-2021

Code answers related to "get the url without the query string php"

Browse Popular Code Answers by Language