lundi 2 mai 2016

Generate random activation code in PHP

How to generate random activation code based on current datetime and username in PHP.

The return value should be like this, i.e:

201605021955Username

function getActivationCode($username){
$activationCode = "";        

 ....

return activationCode;
}




Aucun commentaire:

Enregistrer un commentaire