#22524 [NEW]: Add a strip_accents function

From: Date: Mon, 03 Mar 2003 21:45:35 +0000
Subject: #22524 [NEW]: Add a strip_accents function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34699@lists.php.net to get a copy of this message
From: gmarchand at videotron dot ca Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Feature/Change Request Bug description: Add a strip_accents function It would be awesome if PHP had the strip_accents() function. Something like strip_tags(), only it removes the accented letters and replace them with their non-accented version. For example: <? echo strip_accents("Bonjour Véronique, comment ça va?") ?> gives: Bonjour Veronique, comment ca va? I suppose it would be even better if you could have an optional parameter of allowable accents too. It would be very useful for searching databases. For example: on my site, people can search a music band database, but if they don't have the umlauts on their keyboards, and if they search for a band like say "Mötley Crüe" without typing the umlauts they might not find it. So I have to use an alternate spelling field, but it would be awesome if there were a built-in strip_accents() function. I'm sure it could have many many more applications too :) -- Edit bug report at http://bugs.php.net/?id=22524&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22524&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22524&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22524&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22524&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22524&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22524&r=support Expected behavior: http://bugs.php.net/fix.php?id=22524&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22524&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22524&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22524&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22524&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22524&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22524&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22524&r=gnused

« previous php.bugs (#34699) next »