Random String in php


SUBMITTED BY: Guest

DATE: June 11, 2013, 9:27 p.m.

FORMAT: PHP

SIZE: 172 Bytes

HITS: 1117

  1. <?php
  2. $string = "abcdefghijklmnopqrstuvwxyz0123456789";
  3. for($i=0;$i<25;$i++){
  4. $pos = rand(0,36);
  5. $str .= $string{$pos};
  6. }
  7. echo $str;
  8. ?>

comments powered by Disqus