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