Categories
PHP

Stripping the Query String from a URL in PHP

[sourcecode language='php']
list($shorturl) = explode('?','http://www.website.com.com?page=7');
echo $shorturl;
[/sourcecode]

Leave a Reply