$now = date("ymdHis"); //오늘의 날짜 년월일시분초
$rand = strtoupper(substr(md5(uniqid(time())),0,6)) ; //임의의난수발생 앞6자리
$orderNum = $now . $rand ;
FROM http://www.phpschool.com/link/qna_function/166294
// gen order no
$now = date("ymdHis"); //오늘의 날짜 년월일시분초
$rand = strtoupper(substr(uniqid(sha1(time())),0,4)) ; //임의의난수발생 앞6자리
$orderNum = $now . $rand ;
$order["order_id"] = $orderNum;
$rand = strtoupper(substr(md5(uniqid(time())),0,6)) ; //임의의난수발생 앞6자리
$orderNum = $now . $rand ;
FROM http://www.phpschool.com/link/qna_function/166294
// gen order no
$now = date("ymdHis"); //오늘의 날짜 년월일시분초
$rand = strtoupper(substr(uniqid(sha1(time())),0,4)) ; //임의의난수발생 앞6자리
$orderNum = $now . $rand ;
$order["order_id"] = $orderNum;
댓글
댓글 쓰기