function rand($len)
    {
        $chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
        $string=time();
        for(;$len>=1;$len--)
        {
            $position=rand()%strlen($chars);
            $position2=rand()%strlen($string);
            $string=substr_replace($string,substr($chars,$position,1),$position2,0);
        }
        return $string;
    }

 

相关文章:

  • 2022-12-23
  • 2022-02-17
  • 2021-12-18
  • 2022-01-01
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2021-12-14
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案