That is, I need to turn "élève" into "eleve".
In the past, I have used a function like this:
Code: Select all
$clean_string = strtr($accented_string, "éè", "ee");Can anyone offer any help here??
thanks!!
Moderator: General Moderators
Code: Select all
$clean_string = strtr($accented_string, "éè", "ee");Well, not really: I have dozens of characters to replace, that's why I was usingfeyd wrote:str_replace() should work just fine...
oh. ooops. Sorry, I hadn't realized that at all - thanks feyd!!feyd wrote:You can give str_replace() an array for both the search and replacement arguments. Yeah, it'll work.