Answers for "php check if have part of string"

PHP
6

php find if string contains

if (strpos($string, 'substring') !== false) {
	// do stuff 
}
Posted by: Guest on August-25-2020
5

php string contains

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

Code answers related to "php check if have part of string"

Browse Popular Code Answers by Language