I have one variable as
$pwd="abcd";
I want this variable's value should be changed dynamically , every time this page is loaded. How to do this.
I have one variable as
$pwd="abcd";
I want this variable's value should be changed dynamically , every time this page is loaded. How to do this.
Use this code for random unique value for each time
$pwd = md5(time() . rand(1, 1000))
If you want a simple random string generator, you could use something like this:
echo substr(str_shuffle(implode(range('a','z'))), 0, 5); // 5 is the length
If you want to generate random numbers, then use PHP's built-in function mt_rand()
$five_digit_random_number = mt_rand(10000, 99999);