Re: Replacing chars l ike: º OR ¿
| From: | Alexander Skwar | Date: | Mon, 18 Mar 2002 14:00:26 +0000 |
| Subject: | Re: Replacing chars l ike: º OR ¿ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88924@lists.php.net to get a copy of this message | ||
»andy« sagte am 2002-03-18 um 14:22:47 +0100 :
> Hi there,
>
> I am still searching for a function which is replacing all chars not between
> [a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid
> chars or just deleting them. There seems to be an endless amount of those
> chars.
preg_replace('|[^a-z]||g', $string)
or somesuch
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber:
askwar@charente.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 1 day 2 hours 54 minutes