$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];$cosa = $url[count($url)-1];print $cosa;