Skip to content

Instantly share code, notes, and snippets.

@talha08
Created April 17, 2016 18:43
Show Gist options
  • Save talha08/76d05e69d6e93a6c0b0fb97b85c6455c to your computer and use it in GitHub Desktop.
Save talha08/76d05e69d6e93a6c0b0fb97b85c6455c to your computer and use it in GitHub Desktop.
$str = "What happens here?";
echo urlencode($str); //What+happens+here%3F
//rawurlencode($str) //What%20happens%20here%3F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment