RsD0p9BK
2/8/2017 - 10:52 AM

random_with_length.php

// Generate a random 10 digit number and insert into mysql?

echo mt_rand(1000000000, 9999999999);

// http://stackoverflow.com/questions/23362930/generate-a-random-10-digit-number-and-insert-into-mysql