Re: Bug #1115 Updated: each() should reset array pointers by default?
| From: | Haewon Song | Date: | Fri, 19 May 2000 15:04:34 +0000 |
| Subject: | Re: Bug #1115 Updated: each() should reset array pointers by default? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18962@lists.php.net to get a copy of this message | ||
reset ($arr);
while($oneelement = each($arr))
{
$oneelement = $oneelement[value];
...
next($arr);
}
----- Original Message -----
From: "Bug Database" <php-dev@lists.php.net>
To: <charlie@k4azl.net>; <php-dev@lists.php.net>
Sent: Friday, May 19, 2000 9:52 AM
Subject: [PHP-DEV] Bug #1115 Updated: each() should reset array pointers by
default?
> ID: 1115
> Updated by: hholzgra
> Reported By: charlie@k4azl.net
> Status: Closed
> Bug Type: Feature/Change Request
> Assigned To:
> Comments:
>
> yeah, how should each() function distinuish betwenn
> first and following cycle in while-loop
> this ain't possible to implement in a sane way
>
> Full Bug description available at: http://bugs.php.net/?id=1115
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net