2008-05-12 17:09:18大D QQ
hash_code
function fn_ascii_usernick_sum($str)
{
$sum = 0;
for ($i=0;$i
{
$chr = substr($str,$i,1);
$sum += ord($chr);
}
$sum = $sum%50;
return $sum;
}
{
$sum = 0;
for ($i=0;$i
$chr = substr($str,$i,1);
$sum += ord($chr);
}
$sum = $sum%50;
return $sum;
}