how can we store values generating in a for loop
Posted: Mon Aug 06, 2007 2:28 pm
HI Friends ...
i have a problem if anybody can solve this .....
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 ...
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);
}
}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 ...