Authentication Code in PHP - Php

Generate code

Snippet Code


  
Rate this page :
  [ 0 votes]

This basic snippet will create a random authentication code, or just a random string.

<?php $string = "abcdefghijklmnopqrstuvwxyz0123456789"; for($i=0;$i<25;$i ){ $pos = rand(0,36); $str .= $string{$pos}; } echo $str; ?>

Tags


Ask Questions

Ask Question