|
-
Return if string is in an array
Hey I need a simple function to determine if a given string is contained in an array
For Instance:
$findInMe = Array('SOLD OUT', 'ERROR', 'EXPIRED', 'NO DEAL');
$givenString = somethingFromMyDatabase;
If $givenString was found in $findInMe then the function would return true
Anybody know how to do this?
Thanks,
I appreciate it!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks