note 123246 added to function.rand

From: Date: Sat, 20 Oct 2018 14:30:18 +0000
Subject: note 123246 added to function.rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-209471@lists.php.net to get a copy of this message
well , this is my vision about "custom random string" : <?php function s($length){ for($i=0;($i<$length)and(($what=rand(1,3))and( (($what==1)and($t=rand(48,57) ))or (($what==2)and ($t=rand(65,90))) or (($what==3)and ($t=rand(97,122))) ) and (print chr($t)));$i++); } s(10); ?> ---- Server IP: 208.43.231.9 Probable Submitter: 5.13.0.211 ---- Manual Page -- http://php.net/manual/en/function.rand.php Edit -- https://master.php.net/note/edit/123246 Del: integrated -- https://master.php.net/note/delete/123246/integrated Del: useless -- https://master.php.net/note/delete/123246/useless Del: bad code -- https://master.php.net/note/delete/123246/bad+code Del: spam -- https://master.php.net/note/delete/123246/spam Del: non-english -- https://master.php.net/note/delete/123246/non-english Del: in docs -- https://master.php.net/note/delete/123246/in+docs Del: other reasons-- https://master.php.net/note/delete/123246 Reject -- https://master.php.net/note/reject/123246 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209471) next »