>>353
mb_internal_encoding("文字コード");
print mb_substr("あいうえお", 0, 3)."<br>";

"文字コード"の部分はスクリプトの文字コード(Shift-JIS, EUC-JP etc)に合わせる。