siimliimand
10/18/2017 - 7:09 AM

PHP check if a string contains ...

PHP check if a string contains ...

$a = 'How are you?';
if (strpos($a, 'are') !== false) {
    echo 'true';
}