help with script needed
| From: | Bruce Gilbert | Date: | Wed, 07 Mar 2007 16:47:01 +0000 |
| Subject: | help with script needed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-250009@lists.php.net to get a copy of this message | ||
I have a little script that prints a number out from 1 to 100
[php]
<?php
for( $i=1; $i<=100; $i++ )
{
echo $i;
echo "<br>";
}
?>
[/php]
I just need to add code to print something different, say "foo" if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
--
::Bruce::