How do I check if a string contains a specific word?

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

Leave a Comment