Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Can someone create a 3 second script and show me how it works?
Ok,
I need a .php script that randomly generates 4digits in a row 9times with a dash in between each 4 digit set. The digits must be random and from a-z from 1-9 for any one of the chars in every set.
Then I just need it to output the value please give me a hand this is something I need to know.
EDIT: 1111-2222-3333-4444-5555-6666-7777-8888-9999 style.
People generally are not going to write scripts for you…
however this interested me (slightly) so i wrote a script (2.5 mins)
<?php
srand(time());
$options[0] = "a";
$options[1] = "b";
$options[2] = "c";
$options[3] = "d";
$options[4] = "e";
$options[5] = "1";
$options[6] = "2";
$options[7] = "3";
$options[8] = "4";
$count = count($options);
echo "<br />";
$sect=0;
$unit=0;
$string="";
while ($sect<10){
while ($unit<4){
$random = (rand()%$count);
$string.=$options[$random];
$unit+=1;
}
$string.="-";
$unit=0;
$sect+=1;
}
echo "Your id code is: ".$string;
?>