Re: 2nd Pass of array empty

From: Date: Thu, 30 Aug 2001 09:42:12 +0000
Subject: Re: 2nd Pass of array empty
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65189@lists.php.net to get a copy of this message
In article <OF8B587473.AE8B21CC-ONC1256AB8.002C017D@notes.chase.com>, Ben.Edwards@chase.com (Ben Edwards) 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? Yes, a reset sounds like the likely solution. <http://php.net/reset> If that's not it, then repost with a code example. -- CC

« previous php.general (#65189) next »