Hi
I'm trying to use this code:
while ($resource = 0){
$firstnames = array("Jonh", "Paul", "Bill");
$lastnames = array("Simon", "Luck","Guy");
$name = $firstnames[array_rand($firstnames)]." ".$lastnames[array_rand($lastnames)];
}
my problem is that I must declare the variable $name outside the while because it's need for the $resourse and needed also inside the while.
how can I do this?
thanks