I have make a random string with a array. The letters A, B and C are in a array.
The letters must be see random in the browser, all three next to each other. But this doesn't work. Now the letters ABC are static in the browser and not random if you refresh the page.
Can someone help me? How can I get the letters random?
thanks in advcance.
my code is:
Code: Select all
<?php $a=array("A","B","C"); $random_keys=array_rand($a, 3); echo $a[$random_keys]; echo $a[$random_keys]; echo $a[$random_keys];