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

Synopsis

int endsWith(string $s, string $suffix)

This procedure returns true if the string $s ends with the string $suffix.

Return value

None

Related

endString, startString, startsWith

MEL examples

		endsWith("abc", "bc");
		// Result: 1 //


		endsWith("abc", "ab");
		// Result: 0 //


		endsWith("abc", "");
		// Result: 1 //