Answers for "php check if string exists in text"

PHP
5

php string contains

$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);
Posted by: Guest on May-20-2020
0

contains php

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

Code answers related to "php check if string exists in text"

Browse Popular Code Answers by Language