note 95032 deleted from function.end by danbrown
| From: | danbrown@php.net | Date: | Wed, 09 Dec 2009 22:09:55 +0000 |
| Subject: | note 95032 deleted from function.end by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163777@lists.php.net to get a copy of this message | ||
Note Submitter: rgagnon24 dot nospam at gmail dot com
----
y dot vecchi at gmail dot com...
Your example will only work if the last value in the array does not occur anywhere else in the same
array.
If the array in your example looked like this:
$test = array(1, 2, 3, 4, 5, 4, 3, 2, 1);
The logic will bail out on the first entry in the list.