Answers for "strpos function php"

PHP
93

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
1

strpos in php

<?php
echo strpos("I love php, I love php too!","php");
?>
Posted by: Guest on May-23-2021

Browse Popular Code Answers by Language