LoginSignup
1
2

More than 5 years have passed since last update.

マルチバイトを含む文字列を一文字ずつの配列にする(UTF-8)

Posted at

$strs = preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY);

これでできることを最近知りました。
UTF-8最高です。

1
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2