PHP PHPのmb_strlenは絵文字や濁点で文字数がズレる grapheme_strlenとNormalizerで見た目どおりに数える Bynori 10月 21, 2026 grapheme_strlen()は、人間が1文字と感じる単位(書記素)で文字数を数えるintl拡張の関数です…