strtr(string,from,to)
For instance:
// Replace the characters "1p" in the string with "lr":
$string = "He11o wopld";
$result_string = strtr ($string,"1p","lr");
echo $result_string;
• If the from and to parameters are different in length, both
will be formatted to the length of the shortest.