Answers for "check is a value is on an string php"

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

Code answers related to "check is a value is on an string php"

Browse Popular Code Answers by Language