generate 6 digit random otp number in php code example
Example: php random 5 digit number
$limit = 3;
echo random_int(10 ** ($limit - 1), (10 ** $limit) - 1);
$limit = 3;
echo random_int(10 ** ($limit - 1), (10 ** $limit) - 1);