GUID: 即Globally Unique Identifier(全球唯一标识符) 也称作 UUID(Universally Unique IDentifier) 。 GUID是一个通过特定算法产生的二进制长度为128位的数字标识符,用于指示产品的唯一性。GUID 主要用于在拥有多个节点、多台计算机的网络或系统中,分配必须具有唯一性的标识符。
在 Windows 平台上,GUID 广泛应用于微软的产品中,用于标识如如注册表项、类及接口标识、数据库、系统目录等对象。
GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中每个 x 是 0-9 或 a-f 范围内的一个32位十六进制数。例如:6F9619FF-8B86-D011-B42D-00C04FC964FF 即为有效的 GUID 值。
★GUID在空间上和时间上具有唯一性,保证同一时间不同地方产生的数字不同。 ★世界上的任何两台计算机都不会生成重复的 GUID 值。★需要GUID的时候,可以完全由算法自动生成,不需要一个权威机构来管理。 ★GUID的长度固定,并且相对而言较短小,非常适合于排序、标识和存储。
代码:
Copy to Clipboard
引用的内容:[www.veryhuo.com]

function create_guid() {
$charid = strtoupper(md5(uniqid(mt_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;
}
$charid = strtoupper(md5(uniqid(mt_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;
}
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » php生成GUID(全球唯一标识符)的实例
波比源码 » php生成GUID(全球唯一标识符)的实例
levofloxacin 500mg over the counter cheap levaquin 250mg
order lamictal 200mg pills purchase minipress generic brand tretinoin gel
accutane over the counter buy zithromax 250mg sale buy zithromax 500mg online cheap
indocin without prescription buy generic suprax 100mg buy amoxicillin 250mg sale
cost deltasone 10mg cheap viagra generic buy sildenafil 50mg online
tadalafil generika sildenafil 200mg ohne rezept sildenafil fГјr frauen
provigil 200mg pills Cialis canadian cost order acetazolamide 250mg online
doxycycline uk doxycycline 200mg pills purchase lasix generic
buy clonidine 0.1mg generic buy minocin 100mg pills spiriva 9mcg price
buy terazosin online arava tablet buy azulfidine 500 mg pills
brand zyban 150mg quetiapine online buy quetiapine 50mg ca
cheap molnupiravir 200 mg naprosyn oral cheap prevacid
buy provera without prescription buy provera 5mg generic order periactin pills
order luvox 50mg order fluvoxamine online buy glucotrol 10mg generic
buy glucophage online glucophage for sale cheap generic cialis
buy generic amlodipine 10mg norvasc oral generic tadalafil 40mg
zyvox 600 mg usa linezolid pills casino moons online casino
omeprazole 10mg pills i need a paper written for me best online casino for real money
my friend essay writing blackjack online for real money online casino slots
order triamcinolone for sale aristocort 4mg tablet buy clarinex 5mg without prescription
cost xenical orlistat over the counter order generic zovirax 800mg
order zyloprim 300mg sale allopurinol medication order ezetimibe generic
colchicine 0.5mg without prescription doubleu casino online casino best online poker sites for real money
buy fluconazole 200mg for sale sildenafil 25 mg sildenafil 50mg cheap
viagra online order viagra 100mg pill oral cialis 40mg
viagra 100mg cost cheap sildenafil for sale cialis 20mg brand
order zithromax generic prednisolone 40mg uk cheap gabapentin for sale
live dealer blackjack erection pills viagra online buy generic tadalafil 40mg
buy tadalafil 20mg pill indomethacin 75mg drug indomethacin 50mg cost
order naproxen sale buy omnicef 300 mg generic buy lansoprazole 15mg generic
pioglitazone 15mg brand sildenafil 100mg uk sildenafil otc
order singulair 10mg pill sildenafil 50mg without prescription order viagra generic
tadalafil 20mg us Buy cialis on line legal online blackjack
stromectol lotion purchase amantadine generic cheap avlosulfon 100mg
adalat medication purchase nifedipine generic buy allegra 120mg online cheap
help me with my paper my future essay writing buy sulfasalazine 500 mg pills
doxycycline generic doxycycline over the counter cleocin pill
oral mesalamine mesalamine 400mg pill purchase avapro online
fosamax 35mg pill fosamax over the counter ibuprofen ca
order pepcid 20mg sale mirtazapine us remeron 30mg tablet
tadalafil drug plavix 150mg us amoxicillin 250mg ca
buy generic minocin 50mg purchase minocin online hytrin sale
glycomet 500mg tablet nolvadex pills cost tamoxifen 20mg
accutane online order oral prednisone 40mg ampicillin pill
order fildena 50mg for sale order propecia 1mg pill propecia 5mg pills
zofran 4mg tablet oral ondansetron buy bactrim generic
order isotretinoin 40mg sale azithromycin uk order zithromax 250mg online
order albuterol generic ventolin 2mg us clavulanate us
order doxycycline for sale acyclovir 800mg for sale acyclovir 800mg pills
azathioprine pills order naproxen 500mg for sale order naprosyn 500mg pill