SyntaxFix
Write A Post
Hire A Developer
Questions
For unicode characters, it is :
preg_replace("/[^[:alnum:][:space:]]/u", '', $string);