Answers for "pphp string where string included"

PHP
6

php find if string contains

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

check if string contains substring php 8

str_contains('STRING', 'SUB_STRING');
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language