Re: Replacing chars like: º OR ¿
| From: | andy | Date: | Mon, 18 Mar 2002 14:00:08 +0000 |
| Subject: | Re: Replacing chars like: º OR ¿ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88923@lists.php.net to get a copy of this message | ||
found it:
# remove all others
$filename = ereg_replace ("[^a-z^0-9^-]", "", $filename);
cheers,
andy
"Andy" <news.letters@gmx.de> schrieb im Newsbeitrag
news:20020318132236.9260.qmail@pb1.pair.com...
> 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.
>
> Thanx for any hint,
>
> andy
>
>