スクリプト (MEL) |
MEL のみで使用可能 |
endString |
カテゴリ: 言語, 文字列 |
移動先: 概要 戻り値 関連項目. MEL 例.
string endString(string $s, int $count)
このプロシージャは、文字列 $s の最後の $count 文字を返します。
$count が 0 か負の場合は、空の文字列が返されます。
$count が $s の文字数と同じかそれ以上の長さの場合は、文字列全体が返されます。
なし
endsWith, startString, startsWith
endString("abc", 1);
// Result: c //
endString("abc", 8);
// Result: abc //
endString("abc", 0);
endString("", 3);