2006年8月アーカイブ

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

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

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