/ Published in: PHP

This function returns a random string composed of the characters contained within the "$string" variable of the function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function randomString(){ $string = "abcdefghijklmnopqrstuvwxyz0123456789"; for($i=0;$i<25;$i++){ $str .= $string[$pos]; } return $str } ?>
Comments
