Re: Weird nested while loop problem

From: Date: Wed, 17 Jan 2001 21:26:00 +0000
Subject: Re: Weird nested while loop problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35156@lists.php.net to get a copy of this message
> What I'm getting is that the inner while loop executes on the first > execution of the outer while, and then not at all. How would I get > it to execute each time? Coming from a perl background, I got stuck there too when I started using PHP. PHP has this odd notion of an array pointer. After the first time you loop through the array, the pointer is at the end, so the second loop won't really do anything. Use the reset frunction to reset the array pointer to the first element. - Darryl ---------------------------------------------------------------------- Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen@usask.ca Education & Research Technology Services, http://gollum.usask.ca/ Department of Computing Services, University of Saskatchewan ---------------------------------------------------------------------- "Go not to the Elves for counsel, for they will say both no and yes"

« previous php.general (#35156) next »