// Look for a unique id
while (!$isUnique) {
/*
- * Add a coupon for this user, first we need to create a
- * table-unique "id". The function generatePassword() can do
- * this job for us but we want to exclude some characters.
+ * Add a coupon for this user, first generate a
+ * "table-unique" id number. generatePassword() can do this
+ * but with some characters excluded.
*/
$couponCode = generatePassword(30, array('-', '+', '_', '/', '.'));