Generate a 6 Digit Unique Number using PHP, Generate a 8 Digits Random Number using PHP, PHP rand() Function, Using the PHP Rand() Functions, Get 8 Digits Random Number in PHP, Create six Digits Random Number Using PHP, six Digit Unique Number Generate in PHP
mt_rand(10000000,99999999); This is the inbuild function of a php, you can generate a random number of 8 digit through it.
So let us know how this function is used.
PHP Code: How to Generate 8 Digit Unique Random Numbers in PHP
1 2 3 4 5 6 |
<?php $randomid = mt_rand(10000000,99999999); echo $randomid; ?> |