note 26762 deleted from control-structures.foreach by sniper
| From: | sniper@php.net | Date: | Tue, 10 Jun 2003 22:52:16 +0000 |
| Subject: | note 26762 deleted from control-structures.foreach by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50137@lists.php.net to get a copy of this message | ||
Note Submitter: gideon@fmf.nl
----
the while loop suggested in my last note would be:
reset ($lst);
do
{
$lst[key($lst)] += 10;
} while (next($lst));
but i have the feeling that it could be done in a much better way... .. anyone?