Unique phone numbers
#2

You could generate a random one. random(80000) + 5000. This is most definitely never going to give you the same number. However, if you wish to be absolute to never get the same number for two users, you might create a function to save used numbers and always check, if the number exists in the list.
Reply


Messages In This Thread
Unique phone numbers - by bosmania - 02.03.2019, 13:14
Re: Unique phone numbers - by benjaminjones - 02.03.2019, 19:22
Re: Unique phone numbers - by bosmania - 02.03.2019, 21:04
Re: Unique phone numbers - by Pottus - 03.03.2019, 00:26
Re: Unique phone numbers - by bosmania - 03.03.2019, 08:42
Re: Unique phone numbers - by benjaminjones - 03.03.2019, 09:17
Re: Unique phone numbers - by Dignity - 03.03.2019, 09:56
Re: Unique phone numbers - by m3shys - 03.03.2019, 10:15

Forum Jump:


Users browsing this thread: 4 Guest(s)