note 31055 added to function.rand
| From: | franki at rack1 dot php dot net | Date: | Tue, 08 Apr 2003 14:04:17 +0000 |
| Subject: | note 31055 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46357@lists.php.net to get a copy of this message | ||
just to correct scott's GenPass($_maxlen) function above. it actually returns a code one letter
longer than $_maxlen unless you change the loop control to have $i<$_maxlen instead of
$i<=$_mathlen like this:
for ($i=0;$i<$_maxlen;$i++)
good little function, shame about the typo ;)
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+31055
http://master.php.net/manage/user-notes.php?action=delete+31055
http://master.php.net/manage/user-notes.php?action=reject+31055