<?php

function uuid($uid = '')
{
  $chars = md5(uniqid(mt_rand(), true));
  $uuid = substr($chars, 0, 8).'-';
  $uuid .= substr($chars, 8, 4).'-';
  $uuid .= substr($chars, 12, 4).'-';
  $uuid .= substr($chars, 16, 4).'-';
  $uuid .= substr($chars, 20, 12);
  return $uid . $uuid;
}

相关文章:

  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案