生成唯一订单号的算法

mac2022-06-30  91

/** * 生成唯一订单号的算法 */ public function build_order_no(){ return "ID".date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8); }

转载于:https://www.cnblogs.com/hgj123/p/5141639.html

最新回复(0)