note 10400 deleted from rand by philip
| From: | philip@php.net | Date: | Sun, 26 Aug 2001 10:22:48 +0000 |
| Subject: | note 10400 deleted from rand by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17154@lists.php.net to get a copy of this message | ||
Umm.. that's a bad way of generating strings. You could use substr() on a string consisting of
[A-Z0-9] with rand() as the index and 1 length for a much better way. Your way will generate all
kinds of trash characters.