check if string in string php

PHP
$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}$haystack = 'This is my haystack that we shall check'
$has_A = strpos($haystack, 'A') !== false;
$has_a = strpos($haystack, 'a') !== false;

Source

Also in PHP: