function Thunder($url, $type='en') {
$url ='http://www.111com.net';
if($type =='en'){
return "thunder://".base64_encode("AA".$url."ZZ");
}else{
return substr(base64_decode(substr(trim($url),10)),2,-2);
}
}
$url ='http://www.111com.net';
echo Thunder($url);
输出结果
thunder://QUFodHRwOi8vd3d3LjExMWNuLm5ldFpa
?>
|