how to add autometic number generting in php

Recommended Answers

All 6 Replies

Do you mean random numbers? Explain a little/lot more.

$min = 0;
$max = 100;
$random_number = mt_rand($min, $max);
printf('Your random number is %d', $random_number);

or simply

echo mt_rand();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.