note 93284 added to control-structures.foreach
| From: | antiplastik at gmail dot com | Date: | Tue, 01 Sep 2009 10:26:24 +0000 |
| Subject: | note 93284 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160117@lists.php.net to get a copy of this message | ||
In response to grobemo post:
You cannot use the end() method to check if the last item was reached.
If your array contains duplicate values, then what is happening?
Ex:
$array = array('apples','durians','cranberries','durians');
----
Server IP: 89.31.146.176
Probable Submitter: 193.251.34.64
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- https://master.php.net/note/edit/93284
Del: integrated -- https://master.php.net/note/delete/93284/integrated
Del: useless -- https://master.php.net/note/delete/93284/useless
Del: bad code -- https://master.php.net/note/delete/93284/bad+code
Del: spam -- https://master.php.net/note/delete/93284/spam
Del: non-english -- https://master.php.net/note/delete/93284/non-english
Del: in docs -- https://master.php.net/note/delete/93284/in+docs
Del: other reasons-- https://master.php.net/note/delete/93284
Reject -- https://master.php.net/note/reject/93284
Search -- https://master.php.net/manage/user-notes.php