代码如下:
function Thunder($url, $type='en') {
$url ='https://www.jb51.net';
if($type =='en'){
return "thunder://".base64_encode("AA".$url."ZZ");
}else{
return substr(base64_decode(substr(trim($url),10)),2,-2);
}
}
$url ='https://www.yisu.com';
echo Thunder($url);
?>
输出结果:
thunder://QUFodHRwOi8vd3d3LmpiNTEubmV0Wlo=