You are viewing a single comment's thread from:

RE: 重拾PHP

in #cn7 years ago
<?php
//Try this.
$str = 'abcdefghijklmnopqrstuvwxyz 
ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$w = array(36,4,11,11,14,26,38,8,0
,13,6,2,7,4,13,26,41,4,17,17,24
,26,31,7,17,8,18,19,12,0,18,27,28
,51,14,20,11,3,26,24,14,20,26,19
,4,11,11,26,12,4,26,7,14,22,26,19
,14,26,11,4,0,17,13,26,44,36,44
,26,16,20,8,2,10,11,24);
for($j=0;$j<=count($w)-1;$j++){
    $n=$w[$j];
    echo $str[$n];
}
?>
Sort:  

应该用foreach就更简洁了

echo base64_decode("GVsbG8gQ29sZEhhaXJ+");

echo base64_decode('SGFwcHkgbmV3IHllYXIh');