Deleting accents with PHP

Last update on February 22, 2009 11:37 AM by aakai1056
Published by jak58

Deleting accents with PHP







For one reason or more, it may be useful to convert PHP accentuated text to a text without accents.
Below is a simple function of how to perform this setting :


function strip-Accents($string){
return strtr($string,'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ',
'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');


See also:

Compiling C under linux
Best answers for « Deleting accents with PHP » in :
Delete an MSN Messenger account Show Delete an MSN Messenger account You want to sort or remove nicks appear in the drop-down list to start MSN Messenger? There are several ways to proceed: Deleting an account with MSN version 7 Start Msn7 In the "Tools" menu...
Warning: rmdir(..): Directory not empty Show Warning: rmdir(..): Directory not empty If you are attempting to delete a PHP file and that you get the error message: Warning: rmdir(..): Directory not empty. This might mean that the directory is not empty. To be able to...
Permanently delete your mails on thunderbird Show Permanently delete your mails on thunderbird When you are deleting mails even when emptying the bin, they are not deleted. So thunderbird keeps these mails in a file. Here we will learn how to permanently delete these mails or...
Google Mail - Send and receive emails with Gmail ShowGoogle Mail - Send and receive emails with Gmail Send and Receive mails Everyone who subscribes to an Internet service provider can create one or more email addresses. At first glance, it is not necessary to use an external service...
Delete your Netlog account ShowDelete your Netlog account NetLog is a social network for young people. If you want to delete your profile, just follow the following procedure: click Settings Then click on ACCOUNT Then go to the last bar to start the removal...
Delete unnecessary MSN account ShowDelete unnecessary MSN account Whenever people you know connect to msn on your computer, their addresses are however stored in the list of msn. Below is a tips of how to delete unnecessary msn address on your computer: Go to menu...
Download Outlook PST Fix ShowOutlook PST Fix is a restoration tool for damaged Outlook e-mail. It allows you to recover the e-mails and files which have been deleted accidentally by the users. The program also enables you to reduce the PST file size. Moreover, you can...
Random access memory (RAM or PC memory) ShowTypes of random access memory There are generally two broad categories of random access memory: DRAM memories (Dynamic Random Access Module), which are inexpensive. They are used essentially for the computer's main memory SRAM memories (Static...
Linux - User management ShowFirst step for the administrator When several people have access to a system, the administrator must manage the users. To do so, he must know the common commands and files to be configured. The important files are: the /etc/passwd file the...
WPA - WiFi Protected Access ShowIntroduction to WPA WPA (WiFi protected Access) WiFi network security solution offered by the WiFi Alliance, in order to fill gaps in WEP. WPA - WiFi Protected Access WPA is a "light" version of the 802.11i protocol, which relies on...