标签:time printf print date logs substr array bst hex
//生成随机订单号 $yCode = array(‘A‘,‘B‘,‘C‘,‘D‘,‘E‘,‘F‘,‘G‘,‘H‘,‘I‘,‘J‘); $orderid = $yCode[intval(date(‘Y‘)) - 2011] . strtoupper(dechex(date(‘m‘))) . date(‘d‘) . substr(time(), -5) . substr(microtime(), 2, 5) . sprintf(‘%02d‘, rand(0, 99));
标签:time printf print date logs substr array bst hex
原文地址:http://www.cnblogs.com/guoyinglichong/p/7001057.html