strtr()

It translate characters or replace substrings

Example

<?php
echo strtr(“One Two”,array(“One” => “PHP”, “Two” => “HTML”));
?>

Output

PHP HTML

Share