Reply to Re: [PHP] incrementing in a for loop

Your name:

Reply:


Posted by D A GERM on 09/26/34 11:26

this worked for me:

[CODE]
for ($myLoop = 0; $myLoop < 100; $myLoop= $myLoop + 5)
{
print "<P>my loop: $myLoop";
}
[/CODE]

Peppy wrote:

>I've searched online and am unable to find how to increment by more than one in a for loop.
>
>for ($i = 1; $i <= 6; $i++) {
>
>Is it possible to increment $i by 5?
>
>Thanks.
>
>
>

--
D. Aaron Germ
Scarborough Library, Shepherd University
(304) 876-5423

"Well then what am I supposed to do with all my creative ideas- take a bath and wash myself with them? 'Cause that is what soap is for" (Peter, Family Guy)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация