Created
September 13, 2012 09:20
-
-
Save outman/3713130 to your computer and use it in GitHub Desktop.
Split Chinese String By Space To A New
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cn_string_split_by_space = implode(" ", preg_split('//u', "中文字符串", -1, PREG_SPLIT_NO_EMPTY)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result is : "中 文 字 符 串"