Answers for "str contain str php"

PHP
5

string contains php

$a = 'How are you?';

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

php string contains

str_contains(string $haystack , string $needle);
Posted by: Guest on June-02-2021

Browse Popular Code Answers by Language