php-windows Digest 15 Nov 2004 03:16:51 -0000 Issue 2468
Topics (messages 24976 through 24978):
Re: foreach Problem
24976 by: Trystano.aol.com
24977 by: MikeA
24978 by: Jason Barnett
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
increase the amount of the times you are looping by one.
If you use a FOR loop and loop through the array by its length + 1
Tryst
--- End Message ---
--- Begin Message ---
This is a foreach loop. How do I increase it?
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> increase the amount of the times you are looping by one.
>
> If you use a FOR loop and loop through the array by its length + 1
>
> Tryst
>
--- End Message ---
--- Begin Message ---
Man, and I thought *I* was verbose. :P Actually some of the pieces of your
code is missing, ie. we don't have the class definition for whatever $t is. If
you are looping the right number of times, but the array key selected is the
wrong key, then the problem likely lies in the function where you assign marital
status. I'm guessing this is $t->set_var, so go look there.
--- End Message ---