美文网首页
生成订单号

生成订单号

作者: 上善若水_900e | 来源:发表于2017-09-10 18:36 被阅读0次

    //订单号生成

    function order_sn()

    {

    $order_sn = 'MXD'.date('Ymd').substr( implode(NULL,array_map('ord',str_split(substr(uniqid(),7,13),1))) , -8 , 8);

    return $order_sn;

    }

    相关文章

      网友评论

          本文标题:生成订单号

          本文链接:https://www.haomeiwen.com/subject/adjtsxtx.html