note 63579 deleted from function.array-search by bjori
| From: | bjori@php.net | Date: | Fri, 24 Mar 2006 09:01:09 +0000 |
| Subject: | note 63579 deleted from function.array-search by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106524@lists.php.net to get a copy of this message | ||
Note Submitter: stevenw at hotmail blah dot com
Reason: bad code
----
In response to RichGC a couple of days ago:
I haven't tested the examples but I think the single equals sign is going to cause problems
anyway...
It should be
if ($i == array_search("apple", $fruit_array))
etc