check if substring is present php

PHP
$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}if (strpos($string, 'substring') !== false) {
	// do stuff 
}
Source

Also in PHP: