note 17791 added to function.next
| From: | kalessin at jesus dot com dot au | Date: | Tue, 25 Dec 2001 01:51:57 +0000 |
| Subject: | note 17791 added to function.next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23824@lists.php.net to get a copy of this message | ||
The 'while(list($key,$val) = each($array))' loop syntax is less readable and less
intuitive than 'foreach($array as $val)' or 'foreach($array as $key =>
$val)'. cf. http://www.php.net/manual/en/control-structures.foreach.php
--
http://www.php.net/manual/en/function.next.php
http://master.php.net/manage/user-notes.php?action=edit+17791
http://master.php.net/manage/user-notes.php?action=delete+17791
http://master.php.net/manage/user-notes.php?action=reject+17791