string.contains Function |
The string.contains function determines whether a given string contains a second string.
string.contains(str, cmp);
str | A string expression |
cmp | A string expression to compare with the contents of str |
True if str contains with cmp, otherwise returns false. The test is case-sensitive.
$myString = "Telogis"; PRINT string.contains($myString, "Mick"); PRINT string.contains($myString, "el"); PRINT string.contains($myString, "eL");
The above code snippet produces the following output:
False True False |
string.endswith - determines whether a given string ends with a second string
string.startswith - determines whether a given string begins with a second string