Here are some numbers, from 1 – 50, how to output the number 5,15,25,35,45 ?
I use some code like this, but is also will output 10,20,30,40,50. Thanks.
<?php
for ($n = 1; $n <= 50; $n++) {
if ($n%5 == 0 ){
echo "<p>".$n."<p><br />"; // do stuff
}
}
?>
or
or
or any other combination thereof.