PHP code for generating decent-looking coupon codes (mix of letters and numbers)

前端 未结 10 1435
后悔当初
后悔当初 2020-12-15 21:56

For an ecommerce site I want to generate a random coupon code that looks better than a randomly generated value. It should be a readable coupon code, all in uppercase with n

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 22:49

    you can find a lot of function in php rand manual
    http://php.net/manual/en/function.rand.php

    i like this one

       
    

提交回复
热议问题