Thread: note 59506 deleted from function.base64-encode by betz
note 59506 deleted from
function.base64-encode by betz
2006-02-09 16:47:33
Note Submitter: amishmithani at hotmail dot com
----
To get unique values from rand, use the following recursive
function.
function returnRand($patternArray){
$var = rand(1,15);
if(in_array($var,$patternArray)){
return returnRand($patternArray);
}else{
return $var;
}
}
for($a=0; $a < 4; $a++){
$pattern[] = returnRand($pattern);
}
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php