dropLastCharsString

Returns a version of this string with a number of characters removed from the end.

Syntax

dropLastCharsString(content, num)

Returns

(string) a version of this string with a number of characters removed from the end.

Parameters

content (string)
source
num (integer)
the number of characters to drop from the end of the string. If this is greater than the length of the string, an empty string will be returned. If zero or less, the original string will be returned.

Usage

echo(dropLastCharsString("123456", 2));