Hellihello
oder
<?php
function giveRandIndex()
{
while ($i++ < 2) {
$randLetter[] = chr( rand( ord("A"), ord("Z") ) );
$randNumber[] = rand(0,9);
}
return implode(array_merge($randLetter,$randNumber));
}
while (count($randIndexList)<3) {
$randIndexList[] = giveRandIndex();
}
array_unique($randIndexList);
var_dump ($randIndexList);
Dank und Gruß,