How do I check if a string contains a specific word?
This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. Consider: $a=”How are you?”; if ($a contains ‘are’) echo ‘true’; Suppose I have the code above, what is the correct way to write the statement if ($a contains ‘are’)? 3 36