Jump to content

remove special chars


onlyican

Recommended Posts

Hey people

I thought there was a function out there for this.

 

I have a user input, and I want to remove all special chars, to make it suitable for a file name

 

For example

User input is

Max's S@urday

 

and then with this function, the output would be

maxs surday

So it removed the ' and @

Anyone remember this function, if not one out, any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/39477-remove-special-chars/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.