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

Synopsis

int startsWith(string $s, string $prefix)

This procedure returns true if the string $s starts with the string $prefix.

Return value

None

Related

endString, endsWith, startString

MEL examples

		startsWith("abc", "ab");
		// Result: 1 //

		startsWith("abc", "bc");
		// Result: 0 //

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