I use this, it includes also national characters
$name=strtr( $name,
"`O}ao~¾YYµAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝßaáâaäaaçeéeëiíîi?noóôoöouúuüýy 
*!@#$%^&()+=",
"SOZsozlYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy_____________");

Javier Montserat wrote:

> i want to format the filename of an uploaded file as follows :-
>
> -- replace blankspace with "_"
>
> -- remove any illegal characters.
>
> Which string functions should I use to do this?
>
> Thanks,
>
> Javier
>
>
>
> _________________________________________________________________
> Join the worlds largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to