Answers for "check if string content string php"

PHP
93

php check if string contains word

$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
    echo "My string contains Bob";
}
Posted by: Guest on August-06-2019
1

check string php

is_string(mixed $value): bool
Posted by: Guest on September-28-2021

Code answers related to "check if string content string php"

Browse Popular Code Answers by Language