SyntaxFix
Write A Post
Hire A Developer
Questions
To remove all Unicode characters outside of the Unicode basic language plane:
$str = preg_replace("/[^\\x00-\\xFFFF]/", "", $str);