check if substring matches another string php

PHP
$a = 'Hello world?';

if (strpos($a, 'Hello') !== false) { //PAY ATTENTION TO !==, not !=
    echo 'true';
}
if (stripos($a, 'HELLO') !== false) { //Case insensitive
    echo 'true';
}$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);
Source

Also in PHP: