Perl function convert
| From: | Bruin, Bolke de | Date: | Sun, 10 Sep 2000 19:20:28 +0000 |
| Subject: | Perl function convert | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16071@lists.php.net to get a copy of this message | ||
Hi,
does someone know how to convert this Perl function into PHP?
I *am* getting a bit lost.
sub genKey {
my @rand_array = ( 'a' .. 'z', 'A' .. 'Z', 0 .. 9 );
return join("", map { $rand_array[rand @rand_array] } 0 .. 9);
}
cheerz
Bolke