Sedang Disiapkan

Php problem - Splitting characters in multibyte


The award for providing the correct solution to this problem is $30.

I have one problem on splliting Japanese characters. I noticed that using the Japanese language to be passed in a form, it removes all the blank spaces, so for example, if you pass these words i a japanese: "this is an example", it outputs: "thisisanexample" once passed?? but there is a code in php that splits them, since japanese language uses MB characters, right?

then using the MB characters? How will I differentiate a character from other characters in a sentence?

this is the case:

in a form: if in japanese, you passed "this is an example" and outputs "thisisanexample", i need to split this to:

split 1: this

split 2: is

split 3: an

split 4: example

I have used the mb_split() but was unsucessful

in this function:

mb_split(string pattern, string string[, int limit]);

i tried to play on that function, but im unlucky.. my problem here is the "string pattern" ... i cant figure out what is the string pattern that separates one character from the other.. ?

Kemahiran: PHP

Lihat lagi: mb_split example, mb_split examples, php mb_split example, php count char japanese, php cut string include japanese language, multibyte split php, what is in, the string problem, string problem, string pattern, pattern string, int i, c string pattern, 1. problem, 1 problem, php split japanese character, mb_split characters, php character splitting issue, mb_split php include, mb_split per character

Tentang Majikan:
( 15 ulasan ) Singapore, Singapore

ID Projek: #121307