php 生成订单号 2016年8月8日 上午9:14 PHP 1530 $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)); 订单号 上一篇Linux定时备份数据库 下一篇PHP里非常有用的函数