xxxxxxxxxx
<?php
// example code
$i=1;
$limit = 99;
$charset="";
if($limit > 18){
$i=19;
foreach (range('A', 'Z') as $char) {
foreach (range('A', 'Z') as $char1) {
if($i >= $limit){
$charset = $char . $char1;
break;
}else{
echo $char . $char1."\n";
$i++;
}
}
if($i >= $limit){
$charset = $char . $char1;
break;
}
}
}else{
foreach (range('I', 'Z') as $char2) {
echo $i;
if($i >= $limit){
$charset = $char2;
break;
}else{
echo $char2. "\n";
$i++;
}
}
}
echo $charset;