web2
知识点
strrev()函数将字符串进行颠倒输出
ord()函数返回字符的ascii值
chr()函数返回ascii表中数字对应的字符
解题代码
<?php
$miwen="a1zLbgQsCESEIqRLwuQAyMwLyq2L5VwBxqGA3RQAyumZ0tmMvSGM2ZwB4tws";
function decode($str){
$_='';
$str=base64_decode(strrev(str_rot13($str)));
for($_0=0;$_0<strlen($str);$_0++){
$_c=substr($str,$_0,1);
$__=ord($_c)-1;
$_c=chr($__);
$_=$_.$_c;
}
return $_;
}
var_dump(strrev(decode($miwen)));
?>