php生成唯一订单号的方法

$danhao = date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);

猜你喜欢

转载自www.cnblogs.com/tangqi9602/p/9232430.html