> 5; } $output[] = $out; } return $output;}function shortUrl2($url){ $result = sprintf("%u",crc32($url)); $show = ''; while($result >0){ $s = $result % 62; if($s > 35){ $s=chr($s+61); }elseif($s>9 && $s<=35){ $s=chr($s+55); } $show .= $s; $result = floor($result / 62); } return $show;}echo shortUrl2('http://baidu.com');











