Answers for "What is the use of strpos( )function in 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

Code answers related to "What is the use of strpos( )function in PHP?"

Browse Popular Code Answers by Language