startsWithString

Tests whether the string begins with another string.

Syntax

startsWithString(content, wildcard)

Returns

(boolean) yes/no

Parameters

content (string)
source
wildcard (string)
the compare string

Usage

echo(startsWithString("123456", "123") ? "starts with 123" : "doesnt start with 123");