如下例子
代码如下 | 复制代码 |
<?php function Thunder($url, $type='en') { $url ='http://www.111cn.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.111cn.net'; 输出结果 thunder://QUFodHRwOi8vd3d3LjExMWNuLm5ldFpa |
时间: 2024-11-01 15:38:58