Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

string endString(string $s, int $count)

This procedure returns the last $count characters of the string $s. If $count is zero or negative, then an empty string is returned. If $count is greater than or equal to the number of characters in $s, then the entire string is returned.

Return value

None

Related

endsWith, startString, startsWith

MEL examples

		endString("abc", 1);
		// Result: c //

		endString("abc", 8);
		// Result: abc //

		endString("abc", 0);
		endString("", 3);