note 10010 deleted from function.in-array by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 21:06:48 +0000 |
| Subject: | note 10010 deleted from function.in-array by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21964@lists.php.net to get a copy of this message | ||
In PHP3, this seems to work pretty well:
if (ereg("@@myThing@@", "@@" . join("@@", $myArray) . "@@")
{
// "myThing" is in $myArray
}