본문 바로가기

Programming/PHP

문자열 랜덤으로...

728x90
$str = str_shuffle("abcdefghijklmnopqrstuvwxyz0123456789");
echo substr($str, 0, 10);

 

반응형