文字列の一致にはstrpos (大文字と小文字を区別する文字列) またはstripos (大文字と小文字を区別しない) を使用します。
if (strpos($str1,$str) !== false) {
// It'll check the case-sensitivity of string
echo 'true';
}
if (stripos($str1,$str) !== false) {
// It'll ignore the case-sensitivity
echo 'true';
}