Re: nested for loops
| From: | Micah Montoy | Date: | Wed, 09 Jul 2003 18:12:33 +0000 |
| Subject: | Re: nested for loops | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154604@lists.php.net to get a copy of this message | ||
I did it similar but calling some variables and it would never work. I'll
give it a shot again and see what happens and if same thing, I'll post it.
thanks
"Matt Matijevich" <matijevich@alliancetechnologies.net> wrote in message
news:sf0c1185.079@nw0102dsm.alliancetechnologies.net...
> your syntax is correct, just need to change for ($j=0: $j < 5; $j++) to
> for ($j=0; $j < 5; $j++)
>
> >>> "Micah Montoy" <montmica@isu.edu> 07/09/03 12:56PM >>>
> Anyone ever do a nested for loop?
>
> $i =0;
> $j =0;
> for ($x=0; $x < 50; $x++){
> echo ("1 to 50");
>
> for ($j=0: $j < 5; $j++) {
> echo ("less than 5");
> }
> }
>
>
>