KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I found this example on stackoverflow: if (strpos($a,'are') !== false) { echo 'true'; } But how do I make it search for two words. I need something like this: if $a contains the words "are" or "be" or both echo "contains"; I tried xor and ||
Tags (comma-separated)
Save Edits
Cancel