strHasSuffix

Looks whether a string ends with suffix.

bool
strHasSuffix
(
string str
,
string suffix
)

Parameters

str string

a string to look in

suffix string

the suffix to look for

Return Value

Type: bool

true if str ends with suffix, false otherwise