Stripping the Query String from a URL in PHP

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

About Rob