Removing accents from strings in PHP

A simple method for removing accents from strings in PHP:

1 2 $x = strtr($x, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy");

Categories

Archives

Calendar

January 2011
M T W T F S S
« Sep   May »
 12
3456789
10111213141516
17181920212223
24252627282930
31