check for character in string php

PHP
$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int
Source

Also in PHP: