How do you randomly generate a three-digit number in PHP?
In PHP, you can use the rand() function to generate a random three-digit number. Below is an example code:
$random_number = rand(100, 999);
echo $random_number;
In the above code, the rand() function will generate a random integer between 100 and 999, and assign it to the $random_number variable. Finally, the echo statement will output the generated random number to the screen.