<!DOCTYPE html>
<html>
<body>

<?php
$arr = array("Hello" => "Hi", "world" => "earth");
echo strtr("Hello world",$arr);
?>


</body>
</html>