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.

declaration of strtr

string strtr ( string $string , string $from , string $to )

test strtr online

share strtr

comments for strtr

be the first

No comments so far for strtr(). Leave yours as first below.


Leave your comment