Ummm...
I'm not a PHP expert, but, this code snippet can serve to you (maybe exist a bug, I've codded directly to this message, but the idea should be like this):
// Create an array with a range of numbers 1 - 49
$numberlist = array(range(1,49));
$count = 0
// for loop to pic seven numbers first condition of for absent (then should be true) and evaluate directly the second one */
for ( , $count = 7, ++$count ) {
/ Ummm I'm not sure, but this line should pick a number at random from the array numberlist and extract to the array pick /
reset($numberlist);
$pick = rand(pull($numberlist));
push($sevennos, $pick);
}
/ this is the moment of displaying the seven choices /
$c_key = 0;
reset($sevennos);
while ($c_key = 7) {
print $pick[$c_key];
}
Cheers,
Alfonso Correas