標籤

2012年2月1日 星期三

General Code

<?
 $d= sprintf("%02d", mt_rand(0,99)); 
 $c=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
 $rnd=substr($c,2,5)."-".substr($c,7,4).$d;
?>

經由時間stamp 產生不同的 CODE. 最後二碼

沒有留言:

張貼留言