1
CoX 2014-10-08 12:00:27 +08:00
直接干掉chr(123)和chr(125),肯定出现语法错误啊;连接符(.)和结束符(;)也要处理好才行。
或者替换成空字符串。 |
2
MaiCong 2014-10-08 12:02:12 +08:00 1
<?php
function Create_Guid2() { $CharID = strtoupper(md5(uniqid(mt_rand(), true))); $Guid = substr($CharID, 0, 8) .substr($CharID, 8, 4) .substr($CharID,12, 4) .substr($CharID,16, 4) .substr($CharID,20,12); return $Guid; } echo Create_Guid2(); ?> |