return
base_convert
(
substr
(md5(
$str
), 0, 15) , 16, 10);
//支持16位 注意, 里面的15可以改的短一些不同机器的精度是不同的.
来源: http://www.bubuko.com/infodetail-2021071.html