php生成uuid 工具方法
来源:互联网 发布:网络爬虫技术的应用 编辑:程序博客网 时间:2024/06/05 03:14
/** * 生成uuid * @copyright [chenghuan] * @license [license] * @version [version] * @return [string] [uuid] 长度36 */ function guid(){ $uuid = ''; if (function_exists('com_create_guid')){ return com_create_guid(); }else{ mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up. $charid = strtoupper(md5(uniqid(rand(), true))); $hyphen = chr(45);// "-" //$uuid = //chr(123)// "{" $uuid .= substr($charid, 0, 8).$hyphen .substr($charid, 8, 4).$hyphen .substr($charid,12, 4).$hyphen .substr($charid,16, 4).$hyphen .substr($charid,20,12); //.chr(125);// "}" return $uuid; } }
0 0
- php生成uuid 工具方法
- UUID生成工具
- php生成UUID
- php生成UUID
- PHP 生成UUID
- 一个工具类的全局静态方法生成uuid
- php中生成标准uuid(guid)的方法
- php中生成标准uuid(guid)的方法
- php中生成标准uuid(guid)的方法
- php中生成标准uuid(guid)的方法
- java uuid 生成方法
- UUID生成方法总结
- java uuid生成方法
- UUID的生成方法
- sqlServer 生成UUID方法
- UUID生成方法总结
- UUID生成方法总结
- UUID生成方法总结
- Linux +开发板若干问题
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- tableview联动效果
- Android编译系统分析六:apk签名的过程分析
- 总结我在几个大公司面试中遇到的问题
- php生成uuid 工具方法
- 局部性原理浅析——良好代码的基本素质
- play框架用起来(9)
- Word中正则替换
- 总结Intent可以打开的系统项
- l链表的数据类型
- 使用exe4j打包Java程序
- jstl标签讲解
- 初学AngularJs路由(四):Ui-router-多视图并发操作