Filter FILTER_SANITIZE_URL December 27, 2011 Pramod T P Leave a comment Remove all unwanterd characters form a URL Example ====== <?php $url=”http://www.phpcoåødez.com”; echo filter_var($url, FILTER_SANITIZE_URL); ?> Output ===== http://www.phpcodez.com