note 93284 deleted from control-structures.foreach by thiago
| From: | thiago@php.net | Date: | Tue, 01 Sep 2009 12:22:38 +0000 |
| Subject: | note 93284 deleted from control-structures.foreach by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160119@lists.php.net to get a copy of this message | ||
Note Submitter: antiplastik at gmail dot com
----
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');