|
(PHP 4, PHP 5)
strtr — Translate certain characters
Description
string strtr ( string $str, string $from, string $to )
string strtr ( string $str, array $replace_pairs )
This function returns a copy of str, translating all occurrences of each character in from to the corresponding character in to.
If from and to are different lengths, the extra characters in the longer of the two are ignored.
<?php
$addr = strtr($addr, "äåö", "aao");
?>
strtr() may be called with only two arguments. If called with two arguments it behaves in a new way: from then has to be an array that contains string -> string pairs that will be replaced in the source string. strtr() will always look for the longest possible match first and will *NOT* try to replace stuff that it has already worked on.
<?php
$trans = array("hello" => "hi", "hi" => "hello");
echo strtr("hi all, I said hello", $trans);
?>
This will show:
hello all, I said hi
Note: This optional to and from parameters were added in PHP 4.0.0
Doing for this function is string
Add by Pancho
You can edit it here
|
abcarticle.ru (blockart[dog]mail[dot]ru)
4jlOQZ <a href="http://inqaqeddshsf.com/">inqaqeddshsf</a>, [url=http://vhdgujiuuilc.com/]vhdgujiuuilc[/url], [link=http://pfyfhgpsuhto.com/]pfyfhgpsuhto[/link], http://uwsdwvqplgnn.com/
|
abcarticle.ru (blockart[dog]mail[dot]ru)
lrgCIQ <a href="http://vatchnjvwesf.com/">vatchnjvwesf</a>, [url=http://xczecqnfpoov.com/]xczecqnfpoov[/url], [link=http://fhaurfjgaptk.com/]fhaurfjgaptk[/link], http://njubjmvvaxcq.com/
|
|
Adding comments is available only for registered users.
|
Green Bank Telescope Enables "Intensity Mapping" to Shed Light on Mysteries of Dark Energy
Using the world's largest, fully steerable radio telescope--the National Science Foundation's Robert C. Byrd Green Bank Telescope (GBT) in W.Va.--an international team of researchers has given astronomers the promise of a new tool for mapping the universe and gaining valuable clues about the nature of the mysterious "dark energy" believed to constitute nearly three-fourths of the universe's mass and energy. "Intensity Mapping" offers the potential for ...
More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117366&WT.mc_id=USNSF_51&WT.mc_ev=click
This is an NSF News item.
|
|
PycckaR BepcuR
Articles

Library

Downloads

|