Linked Questions

Popular Questions

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

Asked by At

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')?

Related Questions