ジャンプ先: 概要. 戻り値. 関連. MEL 例.

概要

string endString(string $s, int $count)

このプロシージャは、文字列 $s の最後の $count 文字を返します。$count が 0 か負の場合は、空の文字列が返されます。$count が $s の文字数と同じかそれ以上の長さの場合は、文字列全体が返されます。

戻り値

なし

関連

endsWith, startString, startsWith

MEL 例

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

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

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