I'm having several problems filtering the name of a file upload. About spaces I'm using trim() function, and also dropping special characters like quotes and #.
But I sometimes find filenames with non alphabetical characters like Chinesse, Arabic and Polish. I would like to know if there's a function able to drop this characters, only keeping the roman alphabet ones.
Thanks in advance.
I tried using str_replace() function but I couldn't find a way to keep all symbols and acentuated letters.