Page 1 of 1

how can we store values generating in a for loop

Posted: Mon Aug 06, 2007 2:28 pm
by djdon11
HI Friends ...



i have a problem if anybody can solve this .....

Code: Select all

for($j=0;$j<4;$j++){	
		$rndval = date("s") ;
$rndval .= rand().rand().rand();
$rndval;
$rndval  = substr($rndval,0,9);

$password="";
for ($i=0;$i<9;$i++)
{
	$password .= chr(substr($rndval, $i,1)+105);
}

}
the above code is generating 5 unique passwords in a for loop .....

now i want to store all of these password in a variable & then how i can use these password out of this for loop ...


if anybody can help me out of this than i will be thankful to him/her


thanks ...

Posted: Mon Aug 06, 2007 3:14 pm
by feyd
This is being discussed in your previous thread, therefore does not need a new one. Locked.