0

I am using

{'/[\x2700-\xFFFF]/u'|preg_replace:'':'✅این یک تست است✅'}

to remove ✅ from the unicode text, but it does nothing.

Unicode hex for ✅ is 2705

EDIT: if i use {'/✅/u'|preg_replace:'':'✅این یک تست است✅'}

It returns correct string این یک تست است....strange!

Amir
  • 4,089
  • 4
  • 16
  • 28

0 Answers0