note 26762 added to control-structures.foreach
| From: | gideon at fmf dot nl | Date: | Tue, 12 Nov 2002 01:09:45 +0000 |
| Subject: | note 26762 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39360@lists.php.net to get a copy of this message | ||
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?
--
http://www.php.net/manual/en/control-structures.foreach.php
http://master.php.net/manage/user-notes.php?action=edit+26762
http://master.php.net/manage/user-notes.php?action=delete+26762
http://master.php.net/manage/user-notes.php?action=reject+26762