function makeRandStr($length)
{
//PWの文字数
$str = array_merge(range('a', 'z'), range('0', '9'), range('A', 'Z'));
$r_str = null;
for ($i = 0; $i < $length; $i++) {
$r_str .= $str[rand(0, count($str))];
}

return $r_str;
}


▲上に戻る