[PHP] Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
Add a reset($g_months) right before your while(...) statement. On Fri, 21 Dec 2001, Jason Rennie wrote: Sounds quite odd - you may try an echo(serialize($g_months)) in the function and see what you get... It may be that the code generating the option box has problems - this way you make

Re: [PHP] Re: Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
Why is this needed in this case an not for local variables? You probably are right, I don't imply you aren't, but why is a reset needed in local scope when using global variables? Is it possible to start an each() in a function and continue it in another for global arrays? Philip Hallstrom