check if string has this word php

PHP
$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}

Source

Also in PHP: