endsWithString

Tests whether the string ends with another string.

Syntax

endsWithString(content, wildcard)

Returns

(boolean) yes/no

Parameters

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

Usage

echo(endsWithString("123456", "456") ? "ends with 456" : "doesnt end with 456");