check if string contains substring php 8

58

$a = 'How are you?';

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

Comments

Submit
0 Comments