Answers for "is string php"

PHP
65

php string contains substring

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

php is string

is_string($var)
Posted by: Guest on June-10-2020

Browse Popular Code Answers by Language