randum number 5 digit in php code example
Example 1: php randon integer 4 digit
$digits = 3;
echo rand(pow(10, $digits-1), pow(10, $digits)-1);
Example 2: php rand int
random_int ( int $min , int $max );
$digits = 3;
echo rand(pow(10, $digits-1), pow(10, $digits)-1);
random_int ( int $min , int $max );