Skip to content

Instantly share code, notes, and snippets.

@mactive
Created April 30, 2011 10:23
Show Gist options
  • Save mactive/949586 to your computer and use it in GitHub Desktop.
Save mactive/949586 to your computer and use it in GitHub Desktop.
urldecode and urlencode
<?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