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

Synopsis

string startString(string $s, int $count)

This procedure returns the first $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

endString, endsWith, startsWith

MEL examples

		startString("abc", 1);
		// Result: a //

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

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