Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Random String in php
SUBMITTED BY:
Guest
DATE:
June 11, 2013, 9:27 p.m.
FORMAT:
PHP
SIZE:
172 Bytes
Raw
Download
Tweet
HITS:
1117
Go to comments
Report
<?php
$string
=
"abcdefghijklmnopqrstuvwxyz0123456789"
;
for
(
$i
=
0
;
$i
<
25
;
$i
++
){
$pos
=
rand
(
0
,
36
);
$str
.=
$string
{
$pos
};
}
echo
$str
;
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus