note 56251 deleted from function.rand by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: andy at andycc dot net 

----

Regarding my previous post / function - there's an error in the "for" loop declaration, the correct line should be:

for ($a = 0; $a < $length; $a++) {

the previous posted line would generate a string that is 1 character longer than the given $length.  This corrects that problem.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.