文字列を右から抜き出す

| | コメント(0)

PHPの場合
$str = substr($str, -4);

で右から4文字抜き出せます。

FLASHの場合
STR = STR.substr(STR.length-4,4);

コメントする