list($usec, $sec) = explode(" ", microtime());
$usec = substr(str_replace('0.', '', $usec), 0 ,4);
$str = rand(10,99);
print_r(date("YmdHis").$usec.$str);
PHP生成订单号代码
最新推荐文章于 2024-09-08 11:34:56 发布
list($usec, $sec) = explode(" ", microtime());
$usec = substr(str_replace('0.', '', $usec), 0 ,4);
$str = rand(10,99);
print_r(date("YmdHis").$usec.$str);