Thanks anyone in advance for answering/attempting to answer my question.
I'm currently using a php script to generate random string, but now I'd like to generate random name of a person instead of generating just a random string. My old code looked something like this:
<?php
function RandomString($length) {
$keys = array_merge(range('a', 'z'), range('A', 'Z'));
for($i=0; $i < $length; $i++) {
$key .= $keys[array_rand($keys)];
}
return $key;
}
print RandomString(6);
?>
Thanks Again in Advance.
Aucun commentaire:
Enregistrer un commentaire