Date: 08/30/01
- Next message: _lallous: "[PHP] Re: If i use preg_match() how can i preg_match next?"
- Previous message: Nic Skitt: "Re: [PHP] GUI for PHP"
- In reply to: Ben.Edwards <email protected>: "[PHP] 2nd Pass of array empty"
- Next in thread: Andrey Hristov: "Re: [PHP] Re: 2nd Pass of array empty"
- Reply: Andrey Hristov: "Re: [PHP] Re: 2nd Pass of array empty"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <OF8B587473.AE8B21CC-ONC1256AB8.002C017D <email protected>>,
Ben.Edwards <email protected> (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-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: _lallous: "[PHP] Re: If i use preg_match() how can i preg_match next?"
- Previous message: Nic Skitt: "Re: [PHP] GUI for PHP"
- In reply to: Ben.Edwards <email protected>: "[PHP] 2nd Pass of array empty"
- Next in thread: Andrey Hristov: "Re: [PHP] Re: 2nd Pass of array empty"
- Reply: Andrey Hristov: "Re: [PHP] Re: 2nd Pass of array empty"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

