Filter FILTER_SANITIZE_ENCODED December 27, 2011 Pramod T P Leave a comment Encode special characters Example ====== <?php print_r(filter_var(“http://www.phpcodez.com”,FILTER_SANITIZE_ENCODED)); ?> Output ===== http%3A%2F%2Fwww.phpcodez.com