Answers for "given word is present in string or not"

PHP
2

if word exist in string

$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}
Posted by: Guest on April-28-2020

Code answers related to "given word is present in string or not"

Browse Popular Code Answers by Language