首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

PHP生圆成球唯一码

2013-02-24 
PHP生成全球唯一码? function guid() {$charid strtoupper(md5(uniqid(mt_rand(), true)))$uuid subs

PHP生成全球唯一码

<? function guid() {$charid = strtoupper(md5(uniqid(mt_rand(), true)));$uuid =substr($charid, 0, 8).substr($charid, 8, 4). substr($charid,12, 4).substr($charid,16, 4).substr($charid,20,12); return $uuid; } echo strlen(guid());?>

热点排行