$yCode
=
array
(
‘A‘
,
‘B‘
,
‘C‘
,
‘D‘
,
‘E‘
,
‘F‘
,
‘G‘
,
‘H‘
,
‘I‘
,
‘J‘
);
$orderSn
=
$yCode
[
intval
(
date
(
‘Y‘
)) - 2011] .
strtoupper
(
dechex
(
date
(
‘m‘
))) .
date
(
‘d‘
) .
substr
(time(), -5) .
substr
(microtime(), 2, 5) . sprintf(
‘%02d‘
, rand(0, 99));
只能说重复几率很小,
时间: 2024-11-06 17:37:29