contains

Function: contains()

Returns true (1) if a string contains another string.

Syntax

contains(string, stringToLookFor)

ArgumentTypeDescription
stringStringThe string to search
stringToLookForStringThe string to look for

Examples

contains("Hello PhixFlow", "Phix")

contains() finds a match and returns 1.


contains("Hello PhixFlow", "phix")

contains() does not find a match and returns 0.

See Also