note 101948 deleted from function.array-search by danbrown
| From: | danbrown@php.net | Date: | Wed, 19 Jan 2011 19:20:01 +0000 |
| Subject: | note 101948 deleted from function.array-search by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175907@lists.php.net to get a copy of this message | ||
Note Submitter: syrgjyn at gmail dot com
----
Correction: there's a bug in my function below.
$i += $ncount;
should be:
$i += $ncount - 1;
That's because the for loop increments $i as well.