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

前端 未结 10 1415
后悔当初
后悔当初 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条回答
  •  春和景丽
    2020-12-15 22:45

    You can use the coupon code generator PHP class file to generate N number of coupons and its customizable, with various options of adding own mask with own prefix and suffix. Simple PHP coupon code generator

    Example: coupon::generate(8); // J5BST6NQ

提交回复
热议问题