note 79620 added to ref.strings

From: Date: Wed, 05 Dec 2007 19:58:48 +0000
Subject: note 79620 added to ref.strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-132856@lists.php.net to get a copy of this message
Here's my random string function: <?php function randStr($chars){ $dic = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"; $dict = explode($dic); $pw = array(); for($i=0;$i<$chars;$i++){ $numcount = count($dict); $randNum = rand(0,$numcount); $pw[$i] = $dict[$randNum]; echo($pw[$i]); } } ?> -V925 ---- Server IP: 64.71.164.2 Probable Submitter: 169.199.30.226 ---- Manual Page -- http://www.php.net/manual/en/ref.strings.php Edit -- https://master.php.net/note/edit/79620 Del: integrated -- https://master.php.net/note/delete/79620/integrated Del: useless -- https://master.php.net/note/delete/79620/useless Del: bad code -- https://master.php.net/note/delete/79620/bad+code Del: spam -- https://master.php.net/note/delete/79620/spam Del: non-english -- https://master.php.net/note/delete/79620/non-english Del: in docs -- https://master.php.net/note/delete/79620/in+docs Del: other reasons-- https://master.php.net/note/delete/79620 Reject -- https://master.php.net/note/reject/79620 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132856) next »