PHP 字符串转 bigint 型md5

1
2
3
4
5
6
7
8
/**
     * 字符串转bigint
     * @return bigint(string)
     */
    public function md5($str)
    {
        return base_convert(substr(md5($str), 0, 15) , 16, 10);//支持16位  注意,  里面的15可以改的短一些不同机器的精度是不同的.
    }
原文地址:https://www.cnblogs.com/ghjbk/p/6697881.html