I have a function, gstring (), that generates random strings. $numcodes is the number of generated strings required and inputted by the user.
for($i=0;$i<$numcodes;$i++) {
$keycode=gstring();
print"$keycode";
}
What I need to do from here is to have an array made up of $keycode(s) that are generated. I'm sure this is easily done but I've racked my brain trying to figure it out - to no avail. Any help would be appreciated.