How Can I Generate 12 Digit Unique Random Numbers in PHP?

Hello Freinds Today, I will Tell You about that How Can I Generate 12 Digits Unique Random Numbers by PHP? So let’s Start.

Keywords :- Get 12 Digits Random Number Using PHP, 12 Digits Number Generate in PHP Code, How to Find 12 Digits Random Number with PHP, Create 12 Digits Random Number Using 16

You create a file called a digitrandom.php and then copy and paste this PHP Code into digitrandom.php file. Then after that you open it on the browser. You get the number of 12 digits Your value will change as often as you refresh this browser.


function generateCode($limit){
$code = '';
for($i = 0; $i < $limit; $i++) { $code .= mt_rand(0, 9); }
return $code;
echo generateCode(12);