note 86163 added to function.rand

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
for Random string...

<?php

function random_string($numofletters) {
  $v="";
  for($i=0;$i<$numofletters;$i++){
   if(rand(0,1)==1) {$v.=chr(rand(65,90));}
   else {$v.=rand(0,9);}
  }
  return $v;
}

?>

hope it help.
----
Server IP: 82.160.94.10
Probable Submitter: 62.121.123.98
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit        -- https://master.php.net/note/edit/86163
Del: integrated  -- https://master.php.net/note/delete/86163/integrated
Del: useless     -- https://master.php.net/note/delete/86163/useless
Del: bad code    -- https://master.php.net/note/delete/86163/bad+code
Del: spam        -- https://master.php.net/note/delete/86163/spam
Del: non-english -- https://master.php.net/note/delete/86163/non-english
Del: in docs     -- https://master.php.net/note/delete/86163/in+docs
Del: other reasons-- https://master.php.net/note/delete/86163
Reject      -- https://master.php.net/note/reject/86163
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.