stacks stacks - 1 year ago 75
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);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download