I have the loop below which iterates 4 times. Within this look is another which defines my group names. I would like to produce the output
Group 01
Group 02
Group 03
....
Group 15
Group 16
instead of what I currently get
Group 01
Group 02
Group 03
Group 04
Group 01
Group 02
Group 03
Group 04
Group 01
Group 02
Group 03
Group 04
Group 01
Group 02
Group 03
Group 04
Code
foreach ($largegroups as $key => $users) { // loops 4 times
for ($i = 1; $i <= 4; $i++) {
$num = sprintf("%02d", $i);
$groupname = 'Group ' . $num;
}
}