/
contains

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

Related content

Functions
Functions
Read with this
contains
contains
More like this
matches
matches
Read with this
contains
More like this
replaceAll
replaceAll
Read with this
contains
contains
More like this