Generate Random String
If you don’t need human readable string, then use this function instead, which will create a random string you can use for user id’s etc.
Copy this code and paste it in your HTML
/*************
*@l - length of random string
*/
function generate_rand($l){
$c= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for($i=0; $i<$l; $i++) {
}
return $rand;
}
Report this snippet
Comments
Subscribe to comments