Zufällige Zeichengenerierung function randStr($length=4,$type="1"){<br>
$array = array(<br>
'1' => '0123456789',<br>
'2' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',<br>
'3' => '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',<br>
);<br>
$string = $array[$type];<br>
$count = strlen($string)-1;<br>
$rand = '';<br>
for ($i = 0; $i < $length; $i ) {<br>
$rand .= $string[mt_rand(0, $count)];<br>
}<br>
return $rand;<br>
}