0; $i--) { $str .= $arr[rand(0, sizeof($arr))]; } return $str; } ?>