Answers for "how to check if a string contains some word"

PHP
5

php string contains

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

Code answers related to "how to check if a string contains some word"

Browse Popular Code Answers by Language