How to get a substring of Chinese or Japanese text without cutting off characters in PHP?

Posted by & filed under Website Development.

I used to try to get substrings of Chinese text and would get partial characters than came out as strange diamonds or squares…. until I found the mb_strcut() function! When using PHP, avoid using the substr() function, as it will often cut off Chinese and Japanese characters. For example: $text = ‘拿小锤锤的那个人好可爱的说,哈哈哈,生活太有爱了,加油加油了’; echo substr($text, 0,… Read more »

Kapianyingyu.com – English Vocabulary Online Flash Cards

Posted by & filed under Applications, Development.

Kapianyingyu.com, is built to help Chinese speakers learn English and Japanese vocabulary quickly and conveniently. It’s designed to work on a full-screen desktop computer and mobile devices. It has a database over 4000 everyday English words and 140 useful categories. A card page consists of a small quiz, where the user must choose the correct… Read more »