You are here: Re: [PHP] replace striing éèêà « PHP « IT news, forums, messages
Re: [PHP] replace striing éèêà

Posted by Chris on 06/06/05 04:02

Look into strtr()

http://www.php.net/strtr

It seems to be precisely what you want.

John Taylor-Johnston wrote:

> Can someone show me how to get rid of international characters in
> $string? Is there a function already made?
> You cannot use accented characters in a name reference : <a
> name="montréal">.
> I guess this below is a start. Is there a better way?
> John
>
> http://ca.php.net/manual/en/function.str-replace.php
> $string = "àâéèç";
> |$find = array("à", "â", "é", "è", "ç");
> ||$||replacewith|| = array("a", "a", "e", "e", "c");||
> ||||$onlyconsonants = str_replace($vowels, $replacewith, $string);
>
> |
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация