您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

生存uuid,javauuid_PHP教程

2024/3/6 1:03:45发布26次查看
生存uuid,javauuidfunction guid(){
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)// {
.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;
}
}
http://www.bkjia.com/phpjc/913855.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/913855.htmltecharticle生存uuid,javauuid function guid(){ if (function_exists('com_create_guid')){ return com_create_guid(); }else{ mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product