いや、ほら、「あ」も「┗」も「ω」も「★」同じ幅でしょ?(メモ帳で) んー、だからフォントによるんだって。(ブラウザで) ……… 明らかに不具合ともいいにくいこの現象。 じゃぁ、ないなら作ります? 理屈はかんたん。Shift_JISにすれば、バイト数=文字幅です。 mb_strwidth() 代替案 <?php function mb_strwidth2($s, $e = null) { if (is_null($e)) { $e = mb_internal_encoding(); } return strlen(mb_convert_encoding($s, 'SJIS-win', $e)); } mb_strimwidth() 代替案 <?php function mb_strimwidth2($s, $b, $w, $t = null, $e = null) { if (is_nul
