SyntaxFix
Write A Post
Hire A Developer
Questions
$str = ''; $str_len = 8; for($i = 0, $i < $str_len; $i++){ //97 is ascii code for 'a' and 122 is ascii code for z $str .= chr(rand(97, 122)); } return $str