Name

strtr

Synopsis

strtr($string, $set1, $set2);

Translates all characters in string that are in set1 to the corresponding character in set2. If set1 is longer than set2, the last character in set2 is used for the extra characters in set1. If set2 is longer than set1, the extra characters in set2 are ignored.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.