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

Share

Leave a Reply

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