stacks stacks - 9 months ago 47
PHP Question

PHP url question

Is there a way I can strip out the variables from a link using PHP for example, if I have a link that reads

how would I strip out
so my link reads

Answer Source
list($url) = explode("?", $longUrl, 2);