Generate An Authentication Code In PHP
08
July
2015

The particular code will generate a random string which is 25 character long.

$string = "abcdefghijklmnopqrstuvwxyz0123456789";
for($i=0;$i<25;$i++){
    $pos = rand(0,36);
    $str .= $string{$pos};
}
echo $str;
  • 709 View
  • Pin It