Answers for "php check if is string"

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

Code answers related to "php check if is string"

Browse Popular Code Answers by Language