함수 rand_word($num=12){ $re=''; $list="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~0123456789#$%^&"; $list=str_split($list); $key=array_rand($list,$num); foreach($key를 $value로){ $re .= $list[$value]; } return $re; }