Re: [PHP-DEV] Bug #1115 Updated: each() should reset array pointers by default? From: Haewon Song (ruen <email protected>)
Date: 05/19/00

reset ($arr);

while($oneelement = each($arr))
{
    $oneelement = $oneelement[value];
    ...
    next($arr);
}

----- Original Message -----
From: "Bug Database" <php-dev <email protected>>
To: <charlie <email protected>>; <php-dev <email protected>>
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 <email protected>
> 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 <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>