What is the best way to filter characters like this:
็็็็็็็็็็็็็็็็็็ ็็็็็็็็็
Out without breaking other foreign characters?
Thanks.
What is the best way to filter characters like this:
็็็็็็็็็็็็็็็็็็ ็็็็็็็็็
Out without breaking other foreign characters?
Thanks.
If you filter the right Unicode ranges, this should work:
$str = 'Your string with Unicode symbols'
preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $str);