Working with Multibyte Strings in PHP


Handle multibyte character strings safely with mb_* functions.

Source Code

mb_internal_encoding("UTF-8");
echo mb_substr("こんにちは世界", 0, 5); // Outputs: こんにちは
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments