Ok i am really breaking my head about this one 😃
i want this output: (its for a thumbnail gallery)
1 2 3 4 5
6 7 8 9 10 ...etc
<?php
$a = 0;
while ($a < 25) {
while ($a++ % 5 != 0) {
echo $a . " ";
}
echo "<br />";
}
?>
but it creates this output:
1 2 3 4
6 7 8 9
only 4 numbers, and the 5 and 10 are missing 🙁
i tried many combinations, but i cant get it to work.
Anyone know what i am missing?