note 60484 deleted from function.chr by googleguy

From: Date: Tue, 22 Oct 2013 14:55:13 +0000
Subject: note 60484 deleted from function.chr by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197235@lists.php.net to get a copy of this message
Note Submitter: admin at icstrategy dot midgetforhire dot com ---- I made a password generator with this function... <?php $passlength = 8; $pass = ""; $i = 0; while($i <= $passlength) { $pass .= chr(rand(33,126)); $i++; } echo $pass; ?> Ofcourse you can change passlength. Example of an 8-char password: AFJ\)t'u} I realise it isn't compatible for all sites, but most will accept :)

« previous php.notes (#197235) next »