I need to change non-standard characters like ’ into standard ones like '. How can I do that in PHP? Right now I just need to change the apostrophe, but it would be nice to know how to change others like the double quote and such.
I need to change non-standard characters like ’ into standard ones like ‘ .
Share
You can use
str_replace():However,
’and'are two different characters and I would wonder why you would want to treat them as the same.