Created
April 30, 2011 10:23
-
-
Save mactive/949586 to your computer and use it in GitHub Desktop.
urldecode and urlencode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function url_encode($string){ | |
return urlencode(utf8_encode($string)); | |
} | |
function url_decode($string){ | |
return utf8_decode(urldecode($string)); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment