Answers for "php random number from time"

PHP
0

php script to generate random date

//Generate a timestamp using mt_rand.
$timestamp = mt_rand(1, time());

//Format that timestamp into a readable date string.
$randomDate = date("d M Y", $timestamp);

//Print it out.
echo $randomDate;
Posted by: Guest on April-08-2021
4

php random number

rand(0,10);
or
random_int(0,10)
Posted by: Guest on October-03-2020

Browse Popular Code Answers by Language