A simple PHP loop that increments the value of $id:
$idlist = array("ida", "idb", "idc");
foreach($idlist as $id){
echo '<label id="' . $id . '" class="radio" style="min-height:42px;">' . "\n";
}
Or a number counting alternative:
$num = 1;
while($num <= 3){
echo '<label id="id' . $num . '" class="radio" style="min-height:42px;">' . "\n";
$num += 1;
}
See also
PHP Tutorial[
^]