DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit