note 95032 added to function.end
| From: | rgagnon24 dot nospam at gmail dot com | Date: | Wed, 09 Dec 2009 21:40:46 +0000 |
| Subject: | note 95032 added to function.end | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163776@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 192.41.40.227
Probable Submitter: 71.42.115.245
----
Manual Page -- http://www.php.net/manual/en/function.end.php
Edit -- https://master.php.net/note/edit/95032
Del: integrated -- https://master.php.net/note/delete/95032/integrated
Del: useless -- https://master.php.net/note/delete/95032/useless
Del: bad code -- https://master.php.net/note/delete/95032/bad+code
Del: spam -- https://master.php.net/note/delete/95032/spam
Del: non-english -- https://master.php.net/note/delete/95032/non-english
Del: in docs -- https://master.php.net/note/delete/95032/in+docs
Del: other reasons-- https://master.php.net/note/delete/95032
Reject -- https://master.php.net/note/reject/95032
Search -- https://master.php.net/manage/user-notes.php