note 104914 deleted from function.rand by danbrown
| From: | danbrown@php.net | Date: | Fri, 15 Jul 2011 14:21:12 +0000 |
| Subject: | note 104914 deleted from function.rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181564@lists.php.net to get a copy of this message | ||
Note Submitter: oxiroxt at gmail dot com
----
This may be more readable/convenient:
//Specify length in str_repeat 's second parameter
preg_replace("/./e",
"chr(array_rand(array_flip(array(rand(65,90),rand(97,122),rand(48,57))),1))",
str_repeat(".",20));
Regards,
oxi