[PHP] 2nd Pass of array empty

2001-08-30 Thread Ben . Edwards

I have some code which loops through a n array using a for loop.  This
works fine but if I try to loop through the array again in the same script
the array seems to be empty (i,e, the loop douse not do any interations).
Do I need to reset the array pointer at the begining?  Is there something
else I need to do?

Regards,
Ben


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] 2nd Pass of array empty

2001-08-30 Thread David Robley

On Thu, 30 Aug 2001 17:33, [EMAIL PROTECTED] wrote:
 I have some code which loops through a n array using a for loop.  This
 works fine but if I try to loop through the array again in the same
 script the array seems to be empty (i,e, the loop douse not do any
 interations). Do I need to reset the array pointer at the begining?  Is
 there something else I need to do?

 Regards,
 Ben


Reset the array pointer before the second any any subsequent iteration.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   If cats have kittens, do bats have bittens?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]