Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: PHP で文字列の正確な長さを取得するにはどうすればよいですか?
文字列に含まれる文字数をPHPでカウントする最良の方法は何ですか?
私はウェブ検索を行いましたが、何も見つからないようでした。
使用mb_strlen:
mb_strlen
$count = mb_strlen( $string );
を使用することもできstrlenますが、最善の方法を求めました ;)
strlen