php fstrng contains code example
Example 1: php string contains
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
Example 2: contains php
if (strpos($a, 'are') !== false) {
echo 'true';
}
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
if (strpos($a, 'are') !== false) {
echo 'true';
}