首页 PHP 正文
255

PHP生成唯一ID

  • yiqingpeng
  • 2015-04-15
  • 0
  •  
$year_code = array('A','B','C','D','E','F','G','H','I','J'); 
$order_sn = $year_code[intval(date('Y'))-2010].
strtoupper(dechex(date('m'))).date('d'). substr(time(),-5).substr(microtime(),2,5).sprintf('%02d',rand(0,99));

正在加载评论...