note 56251 deleted from function.rand by felipe
| 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.