PHP URL encryption and decryption function
Base64_encode Syntax: String base64_decode (string data);
*/
$str = ' d3d3ljexmwnulm5ldnk7vtu9zlpmzfg= '; Define String
echo Base64_decode ($STR); Www.111cn.net Cloud Community Network//Output decoded content/*
Base64_encode Syntax: String base64_encode (string data);
*/
$str = ' www.111cn.net cloud-Habitat Community Network '; Define String
echo Base64_encode ($STR); d3d3ljexmwnulm5ldnk7vtu9zlpmzfg=//Output encoded content
For more details please see: PHP tutorial Er/php-function/36589.htm ">http://www.111cn.net/phper/php-function/36589.htm
$RETURNURL = Rawurlencode (Base64_encode ($RETURNURL)); Coding
$RETURNURL = Parse_str (Base64_decode ($RETURNURL));//decode or
$RETURNURL = Base64_decode ($RETURNURL);//decoding
Or
Don't know why, the first decoding method above returns NULL, solving
$RETURNURL = Base64_encode ($RETURNURL); Coding
$RETURNURL = Base64_decode ($RETURNURL);//decoding
This is a way, but the safest, because as long as you know the principle can be solved, but your request is not high so that can be.