Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

string contains a substring

const string = "foo";
const substring = "oo";

console.log(string.includes(substring)); // true
 
PREVIOUS NEXT
Tagged: #string #substring
ADD COMMENT
Topic
Name
5+3 =