Answers for "php find on string"

PHP
1

find in php string or

$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}
Posted by: Guest on April-28-2020
0

php find string in string

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

strpos

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

Browse Popular Code Answers by Language