E
E
EvgMul2016-10-08 06:43:37
PHP
EvgMul, 2016-10-08 06:43:37

How to leave only Chinese characters in a string?

Hello. I have the following problem. There is a string that has Latin and Chinese characters in UTF-8. How can I remove all Latin characters from a string and leave only Chinese characters?
Type regular : '/[x{3040}-x{312F}]/u'throws an error.
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question