I need to only output true if the sentence contain a specific word.
I know I can use the code below to check if a string contains a word and it will output true.
$a = 'How are you?';
if (strpos($a,'are') !== false) {
echo 'true';
}
else{
echo 'false';
But how would I get it to output false if $a was "Why do you care?"