FILTER_SANITIZE_ENCODED

Encode special characters

Example
======

<?php
print_r(filter_var(“http://www.phpcodez.com”,FILTER_SANITIZE_ENCODED));
?>

Output
=====

http%3A%2F%2Fwww.phpcodez.com

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>