Answers for "find a character in a string php"

PHP
65

str_includes php

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

php find string in string

$pos = strpos("find the position of X in here", "X");
Posted by: Guest on March-16-2021

Code answers related to "find a character in a string php"

Browse Popular Code Answers by Language