Here are some methods by which you can generate random numbers / strings in PHP.
- There is a word called rand in php by which you can generate random numbers. Method is given bellow.
$random_value =rand();
echo $random_value.”</br>”;
- You can also give you range of numbers in rand() function . Syntex in given bellow