Answers for ".. strpos php"

PHP
65

php strpos

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

strpos

$mystr = 'abc';
$findMe   = 'a';
$position = strpos($mystr, $findMe);
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language