The explode() function has a correlating multibyte-safe function in mb_split() .
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label multibyte. Show all posts
Showing posts with label multibyte. Show all posts
Wednesday, May 9, 2012
PHP: is the implode() function safe for multibyte strings?
Tags
implode,
multibyte,
php,
Tips For Programmer
Friday, May 4, 2012
Split a sentence into separate words
I need to split a Chinese sentence into separate words. The problem with Chinese is that there are no spaces. For example, the sentence may look like: 主楼怎么走 (with spaces it would be: 主楼 怎么 走 ).
Subscribe to:
Posts (Atom)